My problem is, the display of my plot were dots. how will i able to display it with a curve line. the main code shoud be inside of the for loop.
古いコメントを表示
for x=0.3:0.01:0.5
y=15e-9*exp(x/25e-3)-1;
plot(x,y)
hold on
end
採用された回答
その他の回答 (1 件)
José-Luis
2012 年 8 月 18 日
You are plotting point by point. You might want to try:
x=0.3:0.01:0.5;
y=15e-9*exp(x/25e-3)-1;
plot(x,y,'k-'); %black line
For more help:
help plot
1 件のコメント
カテゴリ
ヘルプ センター および File Exchange で Surface and Mesh Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!