plotting trouble
Ältere Kommentare anzeigen
can anyone help me see what im doing wrong here i want to plot this with a for loop
for i=1:20
x= i
y=x
end
plot(x,y)
but when i plot it,there is no graph in the figure window and the graph has a really weird range that i didnt input however when i try this it works just fine why is that
x=1:1:20
y=x
plot(x,y)
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu 2-D and 3-D Plots finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!