How to store iterated result/data in Matlab ?

Status
Not open for further replies.

rahul.6sept

Full Member level 5
Joined
Nov 17, 2006
Messages
243
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,298
Location
Guwahati, India
Activity points
2,889
Dear all,

I want to know as how to store iterated result in matlab.

I'm using a for loop,for every iteration of for loop i want to store the output.After completion of all iterations, the outputs are to be added for final result.

In C language we use array.But in Matlab, i'm not sure as how to code it.

Plz reply.


Regards,
rc
 

Hi,

i can't understand your problem but if you can code it with C, i am sure you can do the same with matlab.

you said you use a loop and you want to store output in array. You can try this :

iter=1;
while(iter<max_iter)
[your process]
output_vect[iter]=OUTPUT;
iter=iter+1;
end

Regards,

Chaker
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…