Trying to code from Polymath

7 views (last 30 days)
can you convert Polymath code into a Matlab code but Im not sure how. Please help!!!

Accepted Answer

Walter Roberson
Walter Roberson on 23 May 2022
Use the symbolic toolbox.
Move all of the initializations of constants first.
syms cc cp ca co
and convert each of those things like f(cc)=EXPRESSION initial VALUE to
sol = solve(eqns, [cc, cp, ca, co])
then at the end,
fc = vo *;
fp = vo * sol.cp;
fa = vo *;
fo = vo *;
tau = V/vo;

More Answers (0)

Community Treasure Hunt

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

Start Hunting!

Translated by