For or If loop with system of equations with initial value of zero.
Show older comments
Hello can someone can help or guide me to creating this code. I have a system of equations that I want to insert into a for or if loop. The first equation has variables from the second equation but can be considered to be zero initially, this goes for the following equations as well e.g. y1=exp(y2*t)/exp(t), y2=exp(y3*t)/exp(y1*t) etc where t is time. After the first iteration I want to insert the already calculated value into their respective variable. Any help will be appreciative Thanks.
4 Comments
James Tursa
on 19 Mar 2015
You have two equations and four variables, y1, y2, y3, t. Are there any other equations? What are you trying to do with these? Plot or solve for the y's over a range of t's? Or what?
Luis
on 19 Mar 2015
James Tursa
on 19 Mar 2015
What are the equations?
Luis
on 19 Mar 2015
Answers (0)
Categories
Find more on Loops and Conditional Statements in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!