Specific if statement question
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Emma Sellers
am 23 Okt. 2019
Beantwortet: Star Strider
am 23 Okt. 2019
I want to write an if statment that will determine if n2 is the first symbolic variable in this statement.. Is that possible??
UpEquation =
Thanks
0 Kommentare
Akzeptierte Antwort
Star Strider
am 23 Okt. 2019
It is possible, although you may have to do a bit of coding to get that result. See Find Symbolic Variables in Expressions, Functions, Matrices for more information. It makes extensive use of the symvar function.
Note that logical operations on symbolic variables and expressions are not as straightforward as with numeric variables.
0 Kommentare
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!