Azzera filtri
Azzera filtri

"length" doesnt work

2 visualizzazioni (ultimi 30 giorni)
MiauMiau
MiauMiau il 2 Feb 2013
Hi
I have the following problem:
>> x = [1 2 3]
x =
1 2 3
>> length(x)
Index exceeds matrix dimensions.
????

Risposta accettata

Azzi Abdelmalek
Azzi Abdelmalek il 2 Feb 2013
Modificato: Azzi Abdelmalek il 2 Feb 2013
clear length
x=[1 2 3]
length(x)
% Maybe you've used length as a variable
  1 Commento
MiauMiau
MiauMiau il 2 Feb 2013
That's right, I indeed did. Thanks a lot

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Matrices and Arrays in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by