PDA

View Full Version : matlab loop help


jemma
May25-10, 09:18 PM
Using Matlab, I have 4 polynomial equations which I can solve by substituting the starting values for the variables into the equations. However, I want to contruct a loop to then substitute the answer from the first round back into the equations to replace the orginal starting values, and do this multiple times to produce multiple answers (a different answer for every round in the loop). Any idea how I can do this? Thanks :)

Mark44
May25-10, 09:36 PM
Start by reading about the various loop control keywords. Here's a good place to start - http://www.mathworks.com/access/helpdesk/help/pdf_doc/matlab/getstart.pdf. Section 4.2, Loop Control, should help you get going.