Can I put restrictions on possible values for variables?
조회 수: 6 (최근 30일)
이전 댓글 표시
Say I have a system of equations or an equation I want to solve, but only under certain conditions for my variables (eg: x is not 0 or x<20)
How could I create a variable with certain restrictions on it's possible values? (or would I specify that when using a specific function for solving the equation(s)?
Side note: I'm not quite sure how I will solve the equation(s) but I may use one of the following: http://www.mathworks.com/help/symbolic/solve-a-system-of-algebraic-equations.html http://www.mathworks.com/help/symbolic/mupad_ref/linsolve.html http://www.mathworks.com/help/symbolic/solve.html
댓글 수: 0
답변 (1개)
Star Strider
2014년 9월 9일
I’m not certain what you are doing, but the Symbolic Math Toolbox assume function (and its friends listed at the end of the page) may be helpful.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Assumptions에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!