MATLAB Answers

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

조회 수: 20(최근 30일)
jiyun Kim
jiyun Kim 11 May 2019
Commented: jiyun Kim 13 May 2019
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.

채택된 답변

gonzalo Mier
gonzalo Mier 11 May 2019
You can remove nan before computing the histogram
histogram(ws(~isnan(ws(:))))

  댓글 수: 1

로그인 to comment.

More Answers (0)

이 질문에 답변하려면 로그인을(를) 수행하십시오.


Translated by