not able to plot x

2 views (last 30 days)
Lincy Elizebeth Jim
Lincy Elizebeth Jim on 24 Jun 2015
Edited: Azzi Abdelmalek on 24 Jun 2015
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)

Tags

Community Treasure Hunt

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

Start Hunting!