"length" doesnt work
19 views (last 30 days)
Show older comments
Hi
I have the following problem:
>> x = [1 2 3]
x =
1 2 3
>> length(x)
Index exceeds matrix dimensions.
????
0 Comments
Accepted Answer
Azzi Abdelmalek
on 2 Feb 2013
Edited: Azzi Abdelmalek
on 2 Feb 2013
clear length
x=[1 2 3]
length(x)
% Maybe you've used length as a variable
More Answers (0)
See Also
Categories
Find more on Matrices and Arrays in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!