How to initialize a cell with all zero values in matlab?
7 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (1)
KSSV
am 16 Jun. 2017
Bearbeitet: KSSV
am 16 Jun. 2017
charstring={'0' '0' '0' '0' '0' '0'};
Or
charstring = [repmat({'0'},1,6)] ;
Siehe auch
Kategorien
Mehr zu Other Formats finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!