Hi, I have a large matrix, and what I want to do is pick out first 3 elements of each row, transpose and stack on top of each other, so just have one column at the end…
for example: if i start with this matrix:
1 2 3 4 56 7 8 9 1011 12 13 14 15
I want to end up with this column:
123678111213
My problem is: how do I put the pointer on a new line at the end of for loop?
test=load('test.txt'); for i=1:length(test(:,1))HX1=test(i:i,1:3)'\n <------ this is not working .... end
Best Answer