MATLAB: Create matrix from other two matrices

create matrix

Hello
i have matrix
tem_n1 = (1224,1) and
tem_n2= (459 ,1),
i need to do matrix temperature (1683,1) by taking the first 7 rows in matrix tem_n1, 4 rows in matrix tem_n2..
i already created temp is (11,1) i do not know how to proced and get temperature (1683,1)
[n5,m5]=size(tem_n1);
a5=1:n5;
ind5=find(and(mod(a5,1224)<8,mod(a5,1224)>0));
tem_m1 =tem_n1(ind5,1);
[n6,m6]=size(tem_n2);
a6=1:n6;
ind6=find(and(mod(a6,459)<5,mod(a6,459)>0));
tem_m2 =tem_n2(ind6,1);
tem_m = [tem_m1; tem_m2] ;

Best Answer

t=reshape([reshape(temp_n1,8,[]);reshape(temp_n2,3,[])],[],1);