Why does Matlab give an error for axes?
Show older comments
Did anybody know why does Matlab give an error for axes?
Warning: line XData length (2) and YData length (0) must be equal
Thx, Sven_sight
4 Comments
Star Strider
on 30 Aug 2012
Are you using axes or axis? Please post the code that is giving the error.
Jan
on 30 Aug 2012
Posting the small relevant part of the code, which reproduces the problem, would be helpful.
sven_sight
on 30 Aug 2012
Edited: sven_sight
on 30 Aug 2012
Star Strider
on 30 Aug 2012
The plot(X,Y) command might also be informative, as well as the sizes of X and Y. I may be missing something, but I don't see an error in what you've posted.
Accepted Answer
More Answers (0)
Categories
Find more on 2-D and 3-D Plots in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!