Constructing a Loop in Matlab to Solve Polynomial Equations

Click For Summary
SUMMARY

This discussion focuses on constructing a loop in Matlab to iteratively solve polynomial equations. The user aims to substitute initial variable values into four polynomial equations and then use the results from each iteration as new starting values for subsequent calculations. The recommended resource for understanding loop control keywords in Matlab is the official MathWorks documentation, specifically Section 4.2 on Loop Control.

PREREQUISITES
  • Basic understanding of Matlab programming
  • Familiarity with polynomial equations
  • Knowledge of loop control structures in programming
  • Access to MathWorks documentation
NEXT STEPS
  • Study Matlab for loop syntax and examples
  • Explore Matlab while loops and their applications
  • Learn about polynomial equation solving in Matlab using the 'polyval' function
  • Review iterative methods for solving equations in numerical analysis
USEFUL FOR

Matlab programmers, engineers, and researchers working with polynomial equations who need to implement iterative solutions in their projects.

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.
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 7 ·
Replies
7
Views
2K
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 4 ·
Replies
4
Views
8K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K