Reputation: 301
I have this limit values (Max and Min) of x, y and z and i want to use this in axis.
when I do this, It gives error
xlim([-5037.287109375 -8527.0703125]);
ylim([1008.826171875 -1096.7156982421875]);
zlim([10.82118 -63.9398])
axis([xlim ylim zlim])
Limits must be a 2-element vector of increasing numeric values
but it works if i change all those negative values to positive
How do I fix this kind of problems.
Upvotes: 0
Views: 297
Reputation: 1390
Uhm, error tells you what is wrong - 2 element vector of increasing values. -8000 is smaller than -5000, only its absolute value is larger. So, at the very least, swap those values in all 3 vectors.
Upvotes: 1