Need Help in Plot
조회 수: 3 (최근 30일)
이전 댓글 표시
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
댓글 수: 0
채택된 답변
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 :)
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!