I have a 1 by 4 cell array ( 1 row and 4 columns). Every single column of that cell array contains a 4 by 4 matrix. I only want to copy the first, second and, the third row of the 4th column of every 4 by 4 matrix and create another 1 by 4 cell array which is 3 by 1 (3 rows and 1 column elements copied). I was wondering what is an efficient method of doing this?
for i=1:1:number_links
for j=1:1:3
O{1,i}(j,4)=T{1,i}(j,4);
end
end