MATLAB: Not able to plot x

plot

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

Best Answer

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)
Related Question