Trying to code from Polymath

3 次查看(过去 30 天)
can you convert Polymath code into a Matlab code but Im not sure how. Please help!!!

采纳的回答

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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Logical 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by