Plotting Error (Very Simple Code)
Ältere Kommentare anzeigen
As part of practice of plotting, I made a very simple code, but it has an error. Would you check the code and explain on the problem so that I can make an correction?
x=1.0:0.2:2.0; y=2/x; plot(x,y)
Error using / Matrix dimensions must agree.
Error in Untitled6 (line 2) y=2/x;
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!