Hi all
I have m=0:2.5:12.5 time in seconds and p=0:0.2:1 probability of node being near to transmit
i have x=p/m where x is packet delivery
i want to plot x v/s p ie packet delivery increases when probability increases
when i do plot(x,p) no plot appears
kindly guide
thanking in advance
lincy

 Accepted Answer

Azzi Abdelmalek
Azzi Abdelmalek on 24 Jun 2015
Edited: Azzi Abdelmalek on 24 Jun 2015
m=0:2.5:12.5
p=0:0.2:1
x=p./m % it's a multiplication element by element, the operator is ./ instead of /
plot(x,p)

More Answers (0)

Categories

Find more on Aerospace Blockset in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!