필터 지우기
필터 지우기

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

조회 수: 15 (최근 30일)
jiyun Kim
jiyun Kim 2019년 5월 11일
댓글: jiyun Kim 2019년 5월 13일
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)?
) ?

채택된 답변

gonzalo Mier
gonzalo Mier 2019년 5월 11일
You can remove nan before computing the histogram
histogram(ws(~isnan(ws(:))))

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Histograms에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by