MATLAB Answers

0

how can i make histogram without missing value(with nan,isnan)

please help me.
i want calculate wind direction and speen without Missing values(they are appeared -999) and then display it's frequency with histogram.
so i used nan,isnan but it didn't work it apear like this picture(sky blue color). how can i do to make the latter picture(blue one)?
) ?

  댓글 수: 0

로그인 to comment.

답변 수: 1

gonzalo Mier 님의 답변 11 May 2019
 채택된 답변

You can remove nan before computing the histogram
histogram(ws(~isnan(ws(:))))

  댓글 수: 1

로그인 to comment.



Translated by