필터 지우기
필터 지우기

Set nan values

조회 수: 2 (최근 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 CenterFile Exchange에서 Matrix Indexing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by