フィルターのクリア

Set nan values

1 回表示 (過去 30 日間)
Rafael Freire
Rafael Freire 2011 年 9 月 9 日
Why i can´t do this?
x550(:,2)(x550(:,2)<200)=nan
??? Error: ()-indexing must appear last in an index expression.
Best Regards

採用された回答

Walter Roberson
Walter Roberson 2011 年 9 月 9 日
Because MATLAB does not allow () subscripting to be chained.
x550(x550(:,2)<200,2) = nan;
  1 件のコメント
Rafael Freire
Rafael Freire 2011 年 9 月 9 日
Thank you again Mr. Roberson.

サインインしてコメントする。

その他の回答 (1 件)

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

カテゴリ

Help Center および File ExchangeMatrix Indexing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by