Help with graph plotting
8 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Amy Topaz
am 7 Mär. 2022
Kommentiert: Amy Topaz
am 8 Mär. 2022
I am getting the below strange horizontal line starting from 0 to the other end while plotting a curve.

Any idea why would this be?
I am using plot function
plot(a,b);
2 Kommentare
Akzeptierte Antwort
Matt J
am 7 Mär. 2022
Your a and b contain data for 2 lines.
3 Kommentare
Matt J
am 7 Mär. 2022
Bearbeitet: Matt J
am 7 Mär. 2022
If one of the column of b is zero, it would explain why you are getting horizontal line. Troubleshooting would be easier, though, if you would Run your code here in the forum (not on your local computer):

That way, we'd all have access to both code and data and see what it's doing.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!