我有一个单元格A组成:
'你好''世界''测试'
我想将其转换为矩阵.
我试过了
cell2mat(A)
Run Code Online (Sandbox Code Playgroud)
哪个回报
Error using cat
Dimensions of matrices being concatenated are not consistent.
Error in cell2mat (line 84)
m{n} = cat(1,c{:,n});
Run Code Online (Sandbox Code Playgroud)
然后我试过了
cell2mat(A')
Run Code Online (Sandbox Code Playgroud)
然而,它合并了单个单元格中的所有单词.
建议?