how to catch a matrix to a cell
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Roger
am 18 Mär. 2014
Kommentiert: Roger
am 18 Mär. 2014
if true
s={'CD2','GYA','LZH','GOM','XAN'};
p=[234 44 56 33 67];
end
i want get a cell like this
s={'CD2:234','GYA:44','LZH:56','GOM:33','XAN:67'};
do u have any idea?
Akzeptierte Antwort
Andrei Bobrov
am 18 Mär. 2014
Bearbeitet: Andrei Bobrov
am 18 Mär. 2014
strcat(s,{':'},arrayfun(@num2str,p,'un',0))
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!