How to get multiple variables in 'assume' ?

13 ビュー (過去 30 日間)
Niklas Kurz
Niklas Kurz 2021 年 5 月 9 日
回答済み: Star Strider 2021 年 5 月 9 日
For example If I were to set
syms v m g k t real
and I want all of them to be handled as variables greater than 0, but not by
assume(v>0); assume(m>0); ...
is there somewhere a shortcut?

採用された回答

Star Strider
Star Strider 2021 年 5 月 9 日
Declare them in the syms call as positive. MATLAB defines positive as values greater than 0.
See the documentation section on set for details.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeNumbers and Precision についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by