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
댓글 수: 0
채택된 답변
Wayne King
2011년 9월 27일
You mean:
for bbb = 1:10
countermatrix{bbb} = 0;
isequal(countermatrix{bbb},0)
end
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!