Undefined operator '~=' for input arguments of type 'cell'.?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Mira le
am 9 Dez. 2019
Beantwortet: Jakob B. Nielsen
am 9 Dez. 2019
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 Kommentar
Philippe Lebel
am 9 Dez. 2019
The question seems not to be linked to the description. Could you provide a code example of the problem you encounter?
Akzeptierte Antwort
Jakob B. Nielsen
am 9 Dez. 2019
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 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Logical finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!