Undefined operator '~=' for input arguments of type 'cell'.?
1 回表示 (過去 30 日間)
古いコメントを表示
W is cell
contains cell values
in iteration the size of W is reduced by removing cell, and in each time check W is empty , how can I do that in matlab
W =
1×2 cell array
[1×2 double] [1×2 double]
>> W{1}
ans =
1 2
>> W{2}
ans =
2 3
1 件のコメント
Philippe Lebel
2019 年 12 月 9 日
The question seems not to be linked to the description. Could you provide a code example of the problem you encounter?
採用された回答
Jakob B. Nielsen
2019 年 12 月 9 日
If you want to check that a cell array is empty, simply use isempty(W), which will yield 0 as long as you still have values left in W, and 1 once the final cell is removed.
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!