How to save matrices from for loop into another matrix

I have a 5-by-200 matrix where the i:50:200, i=1:50 are related to each other, so for example the matrix columns 1,51,101,151 are related to each other, and columns 49,99,149,199 are also related to each other.

I want to use a for-loop to create another matrix that re-sorts the previous matrix based on this relationship.

My code is

values=zeros(5,200);

for j=1:50
    for m=1:4:200
        a=factor_mat(:,j:50:200)
        values(:,m)=a
    end
end

However, the code does not work.


Download how.to.save.matrices.from.for.loop.into.another.matrix.zip
Direct Link


Download


Download how.to.save.matrices.from.for.loop.into.another.matrix.zip
Mediafire


Download


Download how.to.save.matrices.from.for.loop.into.another.matrix.zip
Xerver


Download


Download how.to.save.matrices.from.for.loop.into.another.matrix.zip
Unlimitzone


Download


Download how.to.save.matrices.from.for.loop.into.another.matrix.zip
Uppit


Download

Both comments and pings are currently closed.

Comments are closed.