Pass variables from double to cell
1 回表示 (過去 30 日間)
古いコメントを表示
I had a double variable A and I changed it to a cell-type variable B in the following way:
B = num2cell(A);
Then I built a new cell with different columns (all the other columns are from the cell-type):
ABC=[ B C D E F G];
and it gave me an error:
|Error using horzcat
Dimensions of matrices being concatenated are not consistent|
It is strange because I am working with cells all with the same number of rows. Can anyone help me? Thanks in advance for the help.
0 件のコメント
採用された回答
Azzi Abdelmalek
2014 年 6 月 24 日
What you can do is
ABC={B C D E F G}
unless your variables have the same number of rows
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!