How to initialize a cell with all zero values in matlab?
조회 수: 5 (최근 30일)
이전 댓글 표시
I want a cell array charstring whose every cell is initialized with {000000}. I tried using
charstring={0 0 0 0 0 0 };
but its not working.
댓글 수: 0
답변 (1개)
KSSV
2017년 6월 16일
편집: KSSV
2017년 6월 16일
charstring={'0' '0' '0' '0' '0' '0'};
Or
charstring = [repmat({'0'},1,6)] ;
참고 항목
카테고리
Help Center 및 File Exchange에서 Other Formats에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!