convert from cell to a number?

3 ビュー (過去 30 日間)
Andy
Andy 2011 年 9 月 27 日
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

採用された回答

Wayne King
Wayne King 2011 年 9 月 27 日
You mean:
for bbb = 1:10
countermatrix{bbb} = 0;
isequal(countermatrix{bbb},0)
end
  1 件のコメント
Andy
Andy 2011 年 9 月 27 日
yeah isequal was what i waas looking for

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeStructures についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by