Need Help in Plot

조회 수: 3 (최근 30일)
sam arf
sam arf 2012년 1월 2일
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

채택된 답변

Grzegorz Knor
Grzegorz Knor 2012년 1월 2일
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
sam arf
sam arf 2012년 1월 3일
oh, I see, then it should be
p=10e-13:10e-11:10e-8; isn't it?
Walter Roberson
Walter Roberson 2012년 1월 3일
start : step : end

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by