Concatenate str and int and store it as a vector
3 次查看(过去 30 天)
显示 更早的评论
Hello,
I have two arrays which I would like to concatenate with a string and save it as vector for the following data.
A= [761,2,45,65,900]
B=[56,96,368,879,56]
string = sample
I would like to concatenate the above vectors A and B with the string in the following format [sample_761_56, sample_2_96, sample_45_368, sample_65_879, sample_900_56]
0 个评论
采纳的回答
更多回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!