How to get multiple variables in 'assume' ?

조회 수: 22 (최근 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 CenterFile Exchange에서 Numbers and Precision에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by