How to initialize a cell with all zero values in matlab?
4 ビュー (過去 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!