Is it possible to create a function which transforms one expression to another(by substitution)?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Richárd Tóth
am 23 Jul. 2019
Bearbeitet: Richárd Tóth
am 23 Jul. 2019
The function would accept an input like y >= 2x + 2 and return something like 4ab - a - b + 2 <= 0 by using the following substitutions:
x=2*a* b
y = a+b
The substitution equation is fixed(more complex than this example), and the function should work for every kind of functions in the expressions, like x^4 or sin(x) etc.
0 Kommentare
Akzeptierte Antwort
Steven Lord
am 23 Jul. 2019
Use Symbolic Math Toolbox. The subs function will be of use to you.
1 Kommentar
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Symbolic Math Toolbox 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!