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 个)

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 中查找有关 NaNs 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by