Hi
I have the following problem:
>> x = [1 2 3]
x =
1 2 3
>> length(x)
Index exceeds matrix dimensions.
????

 Akzeptierte Antwort

Azzi Abdelmalek
Azzi Abdelmalek am 2 Feb. 2013
Bearbeitet: Azzi Abdelmalek am 2 Feb. 2013

0 Stimmen

clear length
x=[1 2 3]
length(x)
% Maybe you've used length as a variable

1 Kommentar

MiauMiau
MiauMiau am 2 Feb. 2013
That's right, I indeed did. Thanks a lot

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by