how do i count NaNs in a vectors or array??
1 次查看(过去 30 天)
显示 更早的评论
Sir I have a vector say
A=[5,5,6,NaN,NaN,8,10,5,7,3,NaN,11,5,3,8,9,7,NaN,NaN,NaN,NaN,NaN]
and i want to count the number of NaNs in between the numbers. The result should be[2,1,5]. how can I do it sir? please help
0 个评论
采纳的回答
更多回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!