Trying to code from Polymath

조회 수: 7 (최근 30일)
dyala mohammad
dyala mohammad 2022년 5월 23일
답변: Walter Roberson 2022년 5월 23일
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