matlabFunction with syms do not evaluate eqv?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Andrew
am 2 Sep. 2020
Kommentiert: Steven Lord
am 2 Sep. 2020
Good day,
Som insight way there is no evaluation for current symbolic function?
When entering…
syms p1 p2 v1 v2 gma
eqv = p1*v1^gma==p2*v2^gma;
p2 = matlabFunction(eqv,p2)
The output is the same function, without evaluation for the requested variable. While it should be p2=p1*(v1/v2)^gma or p2=p1*v1^gma/v2^gma... Is there some error in understanding of the use of current functions?
0 Kommentare
Akzeptierte Antwort
Steven Lord
am 2 Sep. 2020
For what you're describing, matlabFunction is not the right tool. solve is the right tool.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Formula Manipulation and Simplification finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!