Filter löschen
Filter löschen

Set nan values

1 Ansicht (letzte 30 Tage)
Rafael Freire
Rafael Freire am 9 Sep. 2011
Why i can´t do this?
x550(:,2)(x550(:,2)<200)=nan
??? Error: ()-indexing must appear last in an index expression.
Best Regards

Akzeptierte Antwort

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

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (1)

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

Kategorien

Mehr zu Matrix Indexing finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by