How to get multiple variables in 'assume' ?

4 visualizaciones (últimos 30 días)
Niklas Kurz
Niklas Kurz el 9 de Mayo de 2021
Respondida: Star Strider el 9 de Mayo de 2021
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?

Respuesta aceptada

Star Strider
Star Strider el 9 de Mayo de 2021
Declare them in the syms call as positive. MATLAB defines positive as values greater than 0.
See the documentation section on set for details.

Más respuestas (0)

Categorías

Más información sobre Symbolic Math Toolbox en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by