Specific if statement question
조회 수: 1 (최근 30일)
이전 댓글 표시
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
채택된 답변
Star Strider
2019년 10월 23일
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
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!