convert from cell to a number?

1 次查看(过去 30 天)
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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Modeling 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by