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일

0 개 추천

Because MATLAB does not allow () subscripting to be chained.
x550(x550(:,2)<200,2) = nan;

추가 답변 (1개)

John D'Errico
John D'Errico 2011년 9월 9일

0 개 추천

Because it is invalid MATLAB syntax. Wanting to do something does not make it possible.

카테고리

도움말 센터File Exchange에서 Logical에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by