フィルターのクリア

Turn data points into NaNs

1 回表示 (過去 30 日間)
Dirk
Dirk 2012 年 6 月 14 日
回答済み: Loren Shure 2017 年 12 月 4 日
I have a grid of data (e.g. 10 columns by 10 rows) and I want to turn some of the data points into NaNs. For instance say I want to turn column 1 rows 2 - 6 , column 2 rows 3 - 8, and column 10 rows 3-4 into NaNs, how can I do this. Thanks.

採用された回答

Loren Shure
Loren Shure 2017 年 12 月 4 日
Look at sub2ind to help you organize the subscripts into linear indices. Then use the linear index to select the values to change.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeElementary Math についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by