Dimensions of arrays being concatenated are not consistent.
7 次查看(过去 30 天)
显示 更早的评论
hi, i receive this error...How can i solve it?
arr = load('matlab_bb.mat')
disp(arr.bb)
cell2mat(arr.bb)
cell2mat(bb)
Error using cat
Dimensions of arrays being concatenated are not consistent.
13 个评论
Image Analyst
2024-4-10
@Luca Re see the FAQ for a good explanation of a cell array:
It explains how and when to use curly braces, square bracket, or round parentheses. I think it will help you get a good intuitive feel for when to use each.
回答(1 个)
Ramtej
2024-4-10
Hi,
Assuming you are triying to convert cell array of characters into string array.
You can use "string" function for your case as shown below.
stringMatrix = string(arr.bb)
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Matrix Indexing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!