Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
how can I run a program using a dataset with missing values?
조회 수: 1 (최근 30일)
이전 댓글 표시
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
Michael Haderlein
2014년 8월 6일
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');
답변 (0개)
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!