Borrar filtros
Borrar filtros

Set nan values

1 visualización (últimos 30 días)
Rafael Freire
Rafael Freire el 9 de Sept. de 2011
Why i can´t do this?
x550(:,2)(x550(:,2)<200)=nan
??? Error: ()-indexing must appear last in an index expression.
Best Regards

Respuesta aceptada

Walter Roberson
Walter Roberson el 9 de Sept. de 2011
Because MATLAB does not allow () subscripting to be chained.
x550(x550(:,2)<200,2) = nan;
  1 comentario
Rafael Freire
Rafael Freire el 9 de Sept. de 2011
Thank you again Mr. Roberson.

Iniciar sesión para comentar.

Más respuestas (1)

John D'Errico
John D'Errico el 9 de Sept. de 2011
Because it is invalid MATLAB syntax. Wanting to do something does not make it possible.

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!

Translated by