比如有一个143*4矩阵,每次想通过循环语句调用X(143,4)中的多行数据,为何不能实现(代码附在下方),请大家帮忙看下,谢谢!
>>n=0:12;
>> X=rand(143,4);
>> C=ones(11,1);
>> for n=0:12
i=11*n
j=1:4
Xj=[X((1+11*n):(11+11*n)),j;C];
end
i =
0
j =
1 2 3 4
??? Error using ==> vertcat
CAT arguments dimensions are not consistent.