Constructing a Loop in Matlab to Solve Polynomial Equations

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 3K views
jemma
Messages
35
Reaction score
0
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 :)
 
Physics news on Phys.org
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.