How do I make my plot show more than one point?
3 次查看(过去 30 天)
显示 更早的评论
I think since I'm using a for loop for this it only shows the final point for both graphs, how do I make it show all the points?
if path == 1
for x1 = 0:.2:5
y1 = (x1*2)+2
plot (x1,y1,'c-->')
end
elseif path == 2
for x2 = 0:.2:5
y2 = x2^2
plot (x2,y2,'m:>')
end
end
end
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!