interpolating the NaNs in Cell array - 180x1
Mostrar comentarios más antiguos
I have a Cell vector - I have tried everything i am still getting an error, i am using matlab 2018b version, i am looking for the answer how to interpolate the NaNs in my cell array
Respuestas (2)
KSSV
el 14 de Ag. de 2020
Let (x,y) be your data where x and y are n*1 arrays each. Say you have NaN's in y and you want to fill them.
idx = isnan(y) ;
y(idx) = interp1(x(~idx),y(~idx),x(idx)) ;
3 comentarios
ANIL TUNCAY
el 14 de Ag. de 2020
ANIL TUNCAY
el 14 de Ag. de 2020
ANIL TUNCAY
el 14 de Ag. de 2020
Bruno Luong
el 14 de Ag. de 2020
y = fillmissing(y,'linear')
Categorías
Más información sobre Data Type Conversion en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!