Solving equation without syms
3 views (last 30 days)
Show older comments
I am trying to solve these equation and dont have access to syms:
I want to get V from 1 and b from 2 for each value of P and rest are constants.
P = C^2(V0-V)/(V0-S(V0-V))^2 .... everything except V is known, P is an array from 0 to 100;
P = Q*b^2/3{exp[q(1-b^(-1/3))]-b^(2/3)}, same P is from 1-100, everything except b is known.
Thanks in advance
0 Comments
Accepted Answer
Torsten
on 27 Jan 2022
Edited: Torsten
on 27 Jan 2022
For the first equation:
Build the polynomial of degree 3 in V with pencil and paper, give numerical values to S,V0,C and P and use Matlab's "roots" to solve for V.
For the second equation:
Give numerical values to all parameters except b and use "fzero" or "fsolve" to solve for b.
3 Comments
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!