What kind of error is this? Unable to identify.

Error using axis>LocSetLimits (line 234) Vector must have 4, 6, or 8 elements.
Error in axis (line 94) LocSetLimits(ax(j),cur_arg);

1 Comment

What does "dtw" (in your tag) mean? Also, can you supply more of the error message, plus some lines of your code around the line that errored?

Sign in to comment.

Answers (1)

It means you invoked axis() passing in a scalar, or a vector that did not have 4, 6, or 8 elements. This might possibly be from an improper xlim() or ylim() call.

Tags

Asked:

on 14 Apr 2013

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!