"length" doesnt work
6 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi
I have the following problem:
>> x = [1 2 3]
x =
1 2 3
>> length(x)
Index exceeds matrix dimensions.
????
0 Kommentare
Akzeptierte Antwort
Azzi Abdelmalek
am 2 Feb. 2013
Bearbeitet: Azzi Abdelmalek
am 2 Feb. 2013
clear length
x=[1 2 3]
length(x)
% Maybe you've used length as a variable
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Matrix Indexing finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!