How to set an assumption on a symbolic variable in a symbolic expression?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
xv cheng
am 6 Aug. 2018
Kommentiert: Walter Roberson
am 6 Aug. 2018
Hello!
I want to solve some equations using symbolic math toolbox.I only get some strings like '3*x1-2*x2'.x1,x2 should be positive numbers.
I can use str2sym(string) to get a symbolic expression 3*x1-2*x2.
Then, how to set an assumption on x1,x2 in the symbolic expression? The assumption is x1>0,x2>0.
Thank you in advance
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Assumptions 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!