Running standard deviation on matrix with NaN values
Ältere Kommentare anzeigen
Hello, I have large matrix where each row represents time series for one location. I need to get equally sized matrix containing running standard deviation along the row dimension. There are several function to do this but none allows for NAN values. My time series includes a large amount of gaps and I can not interpolate the data. I would appreciate any suggestions. Thank you
Akzeptierte Antwort
Weitere Antworten (2)
Walter Roberson
am 16 Dez. 2013
function s = nanstd(X)
s = std(X(~isnan(X)));
end
Tereza Smejkalova
am 17 Dez. 2013
0 Stimmen
Kategorien
Mehr zu Interpolation of 2-D Selections in 3-D Grids 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!