want to convert vector to cell
7 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
rishika yadav
am 27 Jul. 2022
Beantwortet: David Hill
am 27 Jul. 2022
i am dealing with a colum vectror A= [1 2 2 3 2 ]
need to convert this vector in a cell form with element seprated by commas A ={ '1','2','2','3','2'}
0 Kommentare
Akzeptierte Antwort
David Hill
am 27 Jul. 2022
A= [1 2 2 3 2 ]
B=mat2cell(num2str(A'),ones(1,length(A)),1)'
Which is the same as:
C ={ '1','2','2','3','2'}
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Data Types 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!