The code doesn't generate a graph. Please tell where I am doing wrong.
5 ビュー (過去 30 日間)
古いコメントを表示
clc, clear, close all
x = 1;
for n = 1:30
y = (7259/14520)*x + 167/2420
plot(n,y,'color','m')
hold on
x = y;
end
0 件のコメント
回答 (1 件)
KSSV
2022 年 4 月 4 日
You have to use a marker, as you are plotting point by point.
x = 1;
for n = 1:30
y = (7259/14520)*x + 167/2420
plot(n,y,'.','color','m')
hold on
x = y;
end
3 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

