Azzera filtri
Azzera filtri

convert from cell to a number?

2 visualizzazioni (ultimi 30 giorni)
Andy
Andy il 27 Set 2011
so i have this code,
for bbb = 1:counter countermatrix{bbb} = 0; end
when i compare countermatrix{1} to 0, it gave me a 0, which means no i think, why is this?
i use strcmp(0, countermatrix{1})
returns 0
thanks

Risposta accettata

Wayne King
Wayne King il 27 Set 2011
You mean:
for bbb = 1:10
countermatrix{bbb} = 0;
isequal(countermatrix{bbb},0)
end
  1 Commento
Andy
Andy il 27 Set 2011
yeah isequal was what i waas looking for

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Structures in Help Center e File Exchange

Tag

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by