how to combine values into one cell in a matrix within a matrix
显示 更早的评论
i have a variable called stored_percentiles which is a 1x361 matrix. Within that matrix is 361 columns is a 11x2 matrix. How do I combine the 11x2 matrix as one cell value?
for example
within 11x2 matrix desired output for all 361 columns 1 2 ===> (1,2) 3 4 ===> (3,4) 5 6 ===> (4,5)
回答(1 个)
Muthu Annamalai
2013-7-18
If you are on MATLAB v13a or later you can try
size(s) %put your 11x2 cell here
cellJoinedAsString = strjoin(s)
类别
在 帮助中心 和 File Exchange 中查找有关 Numeric Types 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!