Error using vertcat Dimensions of matrices being concatenated are not consistent.
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
i have 2 cell array
the first one is size ( 81 *1 )
the seconde one is size ( 1 * 1 )
when i use vectcat i get and error
0 Commenti
Risposte (1)
Walter Roberson
il 12 Lug 2016
Please check again. Perhaps you are using a 1 x 81 instead of an 81 x 1
>> A = num2cell((1:81).');
>> B = {'hello'};
>> vertcat(A,B)
ans =
[ 1]
[ 2]
[ 3]
[ 4]
[ 5]
[ 6]
[ 7]
[ 8]
[ 9]
[ 10]
[ 11]
[ 12]
[ 13]
[ 14]
[ 15]
[ 16]
[ 17]
[ 18]
[ 19]
[ 20]
[ 21]
[ 22]
[ 23]
[ 24]
[ 25]
[ 26]
[ 27]
[ 28]
[ 29]
[ 30]
[ 31]
[ 32]
[ 33]
[ 34]
[ 35]
[ 36]
[ 37]
[ 38]
[ 39]
[ 40]
[ 41]
[ 42]
[ 43]
[ 44]
[ 45]
[ 46]
[ 47]
[ 48]
[ 49]
[ 50]
[ 51]
[ 52]
[ 53]
[ 54]
[ 55]
[ 56]
[ 57]
[ 58]
[ 59]
[ 60]
[ 61]
[ 62]
[ 63]
[ 64]
[ 65]
[ 66]
[ 67]
[ 68]
[ 69]
[ 70]
[ 71]
[ 72]
[ 73]
[ 74]
[ 75]
[ 76]
[ 77]
[ 78]
[ 79]
[ 80]
[ 81]
'hello'
0 Commenti
Vedere anche
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!