Set nan values
조회 수: 3 (최근 30일)
이전 댓글 표시
Why i can´t do this?
x550(:,2)(x550(:,2)<200)=nan
??? Error: ()-indexing must appear last in an index expression.
Best Regards
댓글 수: 0
채택된 답변
Walter Roberson
2011년 9월 9일
Because MATLAB does not allow () subscripting to be chained.
x550(x550(:,2)<200,2) = nan;
추가 답변 (1개)
John D'Errico
2011년 9월 9일
Because it is invalid MATLAB syntax. Wanting to do something does not make it possible.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!