how to catch a matrix to a cell
1 回表示 (過去 30 日間)
古いコメントを表示
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?
採用された回答
Andrei Bobrov
2014 年 3 月 18 日
編集済み: Andrei Bobrov
2014 年 3 月 18 日
strcat(s,{':'},arrayfun(@num2str,p,'un',0))
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!