Info
Questa domanda è chiusa. Riaprila per modificarla o per rispondere.
how can I run a program using a dataset with missing values?
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Hello all, I have a problem with my code. I get incorrect results when in dataset are some 'inevitable' missing value. How can I do? I don't want to remove them. Do you have any idea? Thank you, Doriana
8 Commenti
Michael Haderlein
il 6 Ago 2014
This question must be answered by you. You seem to make some statistics and I'm not sure if interpolation makes a lot of sense in this context. If you think it does make sense, you can use the following lines (1D only):
function y = interp1_nan(x,y)
y(isnan(y))=interp1(x(~isnan(y)),y(~isnan(y)),x(isnan(y)),'linear','extrap');
Risposte (0)
Questa domanda è chiusa.
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!