convert from cell to a number?

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일

0 개 추천

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개)

카테고리

도움말 센터File Exchange에서 MATLAB에 대해 자세히 알아보기

태그

질문:

2011년 9월 27일

Community Treasure Hunt

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

Start Hunting!

Translated by