Suppose you have a 2d matrix M. And you have certain indexes where the data is not good.SO you want to fill those indexes by the nearest existing value.Can regionfill be used for this
Ältere Kommentare anzeigen
M=magic(10)
index=[7,8,,5,9,45,43,23,34]
M(index)=nan
Now how to fill up those Nan values such that it contains the nearest existing value
AND
second average of nearest existing values
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Matrices and Arrays finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!