Looking to Solve these equations using matlab

2 ビュー (過去 30 日間)
Justin Davis
Justin Davis 2017 年 3 月 10 日
コメント済み: Walter Roberson 2017 年 3 月 15 日
Hi, I am looking to recreate this code in matlab. I need to solve these equations to obtain the answers to T1-T10 and hr1-hr10. I have tried a big solve function and that has not worked. Can anyone point me in the right direction? Thanks
  6 件のコメント
the cyclist
the cyclist 2017 年 3 月 10 日
In general, it is better to paste in actual code (or upload a *.m file), rather than an image, so that people can copy & paste the code into MATLAB.
Walter Roberson
Walter Roberson 2017 年 3 月 15 日
I would suggest vpasolve.
However I am not going to bother typing that all in by hand. I recommend posting as text rather than as image

サインインしてコメントする。

回答 (1 件)

Brandon Eidson
Brandon Eidson 2017 年 3 月 15 日
Hey Justin, it looks like John has guided you to a good approach.  You should be able to use "fsolve" to calculate a solution.  You should refer to its documentation (linked to below) to determine how to best apply it to your situation.  
The link specifically takes you to the section that describes the function outputs.  You should notice that you do not need all those output arguments.  Pick a single variable to store the "fsolve" function's output.  In your case, that single variable will store a vector.
You should also pay close attention to how to pass an equation to "fsolve".  Under the description of the "fsolve" function's inputs, you will see an example of how to create a function handle.

カテゴリ

Help Center および File ExchangeSystems of Nonlinear Equations についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by