Thread Subject: Help required regarding updating a matrix

Subject: Help required regarding updating a matrix

From: Joe Frank

Date: 15 Apr, 2009 15:04:01

Message: 1 of 3

I am doing some iterations..
 
example:
there are 6 iterations. after 1st iteration i am getting these values
[1 2 3 4 5 6]
and after 2nd iteration im gettin
[4 3 2 1 9 8]
This goes on for 6 iterations..

at last i need to have the values from all these 6 iterations in a 6x6 matrix..

how do i do it?

Please help me out

Subject: Help required regarding updating a matrix

From: Matt Fig

Date: 15 Apr, 2009 15:27:02

Message: 2 of 3

For example:



A = zeros(6);

for ii = 1:6
    A(ii,:) = randperm(6); % Here put whatever process updates the matrix.
end

Subject: Help required regarding updating a matrix

From: Joe Frank

Date: 15 Apr, 2009 15:44:02

Message: 3 of 3

"Matt Fig" <spamanon@yahoo.com> wrote in message <gs4uc6$87c$1@fred.mathworks.com>...
> For example:
>
>
>
> A = zeros(6);
>
> for ii = 1:6
> A(ii,:) = randperm(6); % Here put whatever process updates the matrix.
> end

thanks man

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Contact us at files@mathworks.com