How to use fsolve with a variable parameter?

2 views (last 30 days)
Hello,
I have a problem with 13 unknows and 12 equations. I already solve the problem imposing T21=0.
I would to variate 1 of the unknows (I prefer T21) to generate various solution.
How can i do?
I attach you my function.
Thank you in advance.

Accepted Answer

Stephan
Stephan on 10 Nov 2019
Define the values fot T21 that you want to calculate for. Then use a for loop and call your function inside the loop as often as you need. To do so define T21 as an input argument to your function. Don't miss to store the results of every run of your loop in another row or column of your corresponding run of the loop.
  8 Comments
Federico MegaMan
Federico MegaMan on 11 Nov 2019
Okay, it works perfectly now. Thank you very much!
Habeeb Alasadi
Habeeb Alasadi on 20 Oct 2020
Edited: Habeeb Alasadi on 20 Oct 2020
I do not know how to thatnk you, but thanks Stephan.This is what I have been looking for

Sign in to comment.

More 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!