Trying to code from Polymath
7 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
dyala mohammad
le 23 Mai 2022
Réponse apportée : Walter Roberson
le 23 Mai 2022
can you convert Polymath code into a Matlab code but Im not sure how. Please help!!!
0 commentaires
Réponse acceptée
Walter Roberson
le 23 Mai 2022
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 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Logical dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!