I want to know how to plot in a loop. This is my code
- Code: Select all
clc
clear all
for x=1:0.5:10
y=x+1
printf("\n the value of y:%f",y)
plot(x,y)
end
the plot only shows the axes. This is my output.
http://i.imgur.com/2mZQEhL.png
clc
clear all
for x=1:0.5:10
y=x+1
printf("\n the value of y:%f",y)
plot(x,y)
end
Users browsing this forum: No registered users and 3 guests