how to count non nan values

205 ビュー (過去 30 日間)
trailokya
trailokya 2016 年 6 月 22 日
編集済み: Stephen23 2016 年 6 月 22 日
Sir in a vector of large dimension say (750,1) which has NaNs as well as some values. I want to count the non nan values. would you please help me

採用された回答

Stephen23
Stephen23 2016 年 6 月 22 日
編集済み: Stephen23 2016 年 6 月 22 日
nnz(~isnan(vec))
where vec is the vector (it could even be a matrix or ND array).

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by