How to initialize a cell with all zero values in matlab?
7 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposte (1)
KSSV
il 16 Giu 2017
Modificato: KSSV
il 16 Giu 2017
charstring={'0' '0' '0' '0' '0' '0'};
Or
charstring = [repmat({'0'},1,6)] ;
Vedere anche
Categorie
Scopri di più su Other Formats in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!