How to write these formulas in Matlab?

  • Thread starter Thread starter r.valice
  • Start date Start date
  • Tags Tags
    Formulas Matlab
AI Thread Summary
The discussion revolves around a user seeking assistance with writing specific formulas in MATLAB related to wireless link layer parameters, including frame error rate and transportation delay. The user is struggling to implement the code to display transportation delay values as the frame error rate increases from 0 to 0.5. There is a request for guidance on using a summation within a for loop, indicating a lack of experience with MATLAB. Participants emphasize the importance of the user making an initial effort before expecting help, while also expressing willingness to provide direction. Overall, the thread highlights the challenges faced by beginners in programming with MATLAB.
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. p_{f}: the wireless link layer frame error rate
2. \tau: the wireless link layer inter-frame interval
3. p_{i,j}: the probability that the first frame transmitted by the node is received correctly by the router, being the ith retransmitted frame at the jth transmission trial.
4. t_{f}: the one-way frame transportation delay between the node and router.

5. n = 3
6. p_{f} = 0 ~ 0.5
7. \tau = 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 t_{f} values as p_{f} is increased from 0 to 0.5.

Thanks in advance!
 

Attachments

  • 1.png
    1.png
    4.2 KB · Views: 610
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..
 
Back
Top