"length" doesnt work
6 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hi
I have the following problem:
>> x = [1 2 3]
x =
1 2 3
>> length(x)
Index exceeds matrix dimensions.
????
0 comentarios
Respuesta aceptada
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
Más respuestas (0)
Ver también
Categorías
Más información sobre Matrix Indexing en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!