Plotting with a for loop
显示 更早的评论
I am having an issue with this code. I am trying to use plot this and it only comes up with a blank graph. I tried moving the plot command outside the loop but it messes up the numbers on my axes and still doesn't plot.
hold on;
for i = 0:15
v_perp = 6*cosd(i)+7*sind(i);
percent_perp = (abs(v_perp)/14)*100;
plot(i,percent_perp)
end
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Graphics Objects 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!