how can i make histogram without missing value(with nan,isnan)
16 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
gonzalo Mier
2019-5-11
You can remove nan before computing the histogram
histogram(ws(~isnan(ws(:))))
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Histograms 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!