Help with graph plotting
8 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
採用された回答
Matt J
2022 年 3 月 7 日
Your a and b contain data for 2 lines.
3 件のコメント
Matt J
2022 年 3 月 7 日
編集済み: Matt J
2022 年 3 月 7 日
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.
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!