How to write these formulas in Matlab?

  • Thread starter Thread starter r.valice
  • Start date Start date
  • Tags Tags
    Formulas Matlab
Click For Summary

Discussion Overview

The discussion revolves around writing specific formulas in Matlab, particularly for a homework assignment related to wireless communication parameters. Participants seek assistance in coding these formulas and plotting data in 3D without predefined functions for the axes.

Discussion Character

  • Homework-related, Technical explanation

Main Points Raised

  • One participant requests help in writing Matlab code to display values of one-way frame transportation delay as the wireless link layer frame error rate increases from 0 to 0.5.
  • Another participant suggests implementing a summation using a for loop as a potential approach to the problem.
  • Some participants express their lack of ideas or experience with Matlab, indicating they are new to the software and are looking for guidance.
  • There is a suggestion that participants should show some effort in their attempts to solve the problem before expecting help from others.
  • A separate inquiry about plotting a 3D graph in Matlab is introduced, with a participant stating they only have data without functions for the axes.

Areas of Agreement / Disagreement

Participants generally agree that some effort is necessary from the original poster to receive help, but there is no consensus on specific solutions or approaches to the coding problems presented.

Contextual Notes

Some participants have not provided specific attempts or code snippets, which may limit the ability to give targeted assistance. The discussion includes various levels of familiarity with Matlab among participants.

Who May Find This Useful

Individuals new to Matlab, particularly those working on assignments related to wireless communication and data visualization.

r.valice
Messages
2
Reaction score
0
Hi, all. I'm new with Matlab. Anyone knows how to write these formulas in Matlab?


Homework Statement



I need to write the following formulas in Matlab. The definitions are as follows.

1. [tex]p_{f}[/tex]: the wireless link layer frame error rate
2. [tex]\tau[/tex]: the wireless link layer inter-frame interval
3. [tex]p_{i,j}[/tex]: the probability that the first frame transmitted by the node is received correctly by the router, being the [tex]i[/tex]th retransmitted frame at the [tex]j[/tex]th transmission trial.
4. [tex]t_{f}[/tex]: the one-way frame transportation delay between the node and router.

5. n = 3
6. [tex]p_{f}[/tex] = 0 ~ 0.5
7. [tex]\tau[/tex] = 20ms


Homework Equations



Please, see the attached picture where the formulas appear.

The Attempt at a Solution



I'm trying to write it many times. I spent with it for a couple of days, but I cannot.

What I want to have is the MATLAB code that displays [tex]t_{f}[/tex] values as [tex]p_{f}[/tex] is increased from 0 to 0.5.

Thanks in advance!
 

Attachments

  • 1.png
    1.png
    4.2 KB · Views: 622
Physics news on Phys.org
Do you know how to implement a summation using a for loop? It's probably helpful for you to show us what you have done.
 
Umm...actually, I don't have any ideas for solving it. I'm expecting people who knows a bit about Matlab can do it easily. But, I cannot do it because I just started to use Matlab this month.

Thanks.
 
r.valice said:
Umm...actually, I don't have any ideas for solving it. I'm expecting people who knows a bit about Matlab can do it easily. But, I cannot do it because I just started to use Matlab this month.
Sure there are people here who could do it easily, but I doubt that anyone will without you putting some effort into it first. We're not here to do your work for you, but are more than willing to help steer you in the right direction.
 
hai..i want to ask ..how to plot 3D graph using matlab...i just have the data...don't have da function of x,y or z..please help me..
 

Similar threads

Replies
2
Views
2K
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 12 ·
Replies
12
Views
3K
Replies
8
Views
3K
Replies
4
Views
4K
Replies
1
Views
8K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
6
Views
6K
Replies
4
Views
2K