"length" doesnt work

6 visualizaciones (últimos 30 días)
MiauMiau
MiauMiau el 2 de Feb. de 2013
Hi
I have the following problem:
>> x = [1 2 3]
x =
1 2 3
>> length(x)
Index exceeds matrix dimensions.
????

Respuesta aceptada

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

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Matrix Indexing en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by