Turn data points into NaNs
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Dirk
am 14 Jun. 2012
Beantwortet: Loren Shure
am 4 Dez. 2017
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.
0 Kommentare
Akzeptierte Antwort
Loren Shure
am 4 Dez. 2017
Look at sub2ind to help you organize the subscripts into linear indices. Then use the linear index to select the values to change.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Elementary Math finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!