Can I put restrictions on possible values for variables?

6 ビュー (過去 30 日間)
Daniel
Daniel 2014 年 9 月 9 日
回答済み: Star Strider 2014 年 9 月 9 日
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)?

回答 (1 件)

Star Strider
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.

カテゴリ

Help Center および File ExchangeAssumptions についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by