isnan cellfun and dropping rows
3 ビュー (過去 30 日間)
古いコメントを表示
Hi, in my cell array X, I would like to drop all rows where the value of the 4th column is NaN (the new cell array is Y).
I am trying this:
Y = X(~any(cellfun(@isnan,X(:,4),'UniformOutput',false),2),:)
It returns the following error: Undefined function 'any' for input arguments of type 'cell'.
How do I have to change the code?
1 件のコメント
Stephen23
2016 年 9 月 13 日
Not enough information: what is the cell array? What size are the arrays inside the cell array? Are all cell contents numeric?
採用された回答
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Cell Arrays についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!