MATLAB: I can I duplicate raws of variables

duplicate raws

I have imported an xls file spread sheet and I need to replicate six time each raw.
Ex. a1,b1,c1,d1 a2,b2,c2,d2 ……………… ………………
Into a1,b1,c1,d1 a1,b1,c1,d1 a1,b1,c1,d1 a1,b1,c1,d1 a1,b1,c1,d1 a1,b1,c1,d1
a2,b2,c2,d2 a2,b2,c2,d2 a2,b2,c2,d2 a2,b2,c2,d2 a2,b2,c2,d2 ……………… ………………

Best Answer

try this standard method
a=[1:3];
b=[];
for n=1:6
b=[b a];
end
Related Question