replace nan with blank
17 ビュー (過去 30 日間)
古いコメントを表示
abc={1,[],'weak'} now i want to remove [] from above variable abc and give me abc={1,'weak'} only, can any one suggest me any method for it.
0 件のコメント
採用された回答
Andrei Bobrov
2013 年 3 月 14 日
編集済み: Andrei Bobrov
2013 年 3 月 14 日
out = abc(~cellfun(@isempty,abc));
or
abc(cellfun(@isempty,abc)) = [];
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で NaNs についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!