Need Help in Plot

3 Ansichten (letzte 30 Tage)
sam arf
sam arf am 2 Jan. 2012
Hi, I'm newbie in matlab and have some problem in my program. There is no error notification but it doesn't plot, here the program list:
p=10e-8:10e-11:10e-13; n=1./(1-p); plot(p,n);
if I change the variable of p to (1:1:10) the program display the figure, but if the p variable is (10e-8:10e-11:10e-13) it doesn't display the figure.
Thanks before

Akzeptierte Antwort

Grzegorz Knor
Grzegorz Knor am 2 Jan. 2012
Change step size to -10e-11:
p=10e-8:-10e-11:10e-13;
n=1./(1-p);
plot(p,n);
In your case p and m are empty vectors, so there is nothing to plot :)
  2 Kommentare
sam arf
sam arf am 3 Jan. 2012
oh, I see, then it should be
p=10e-13:10e-11:10e-8; isn't it?
Walter Roberson
Walter Roberson am 3 Jan. 2012
start : step : end

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by