how to define a symbolic variable with type ???

i want to declare a symbolic variable S and define the type as REAL. MATLAB takes the default type as COMPLEX variable.

Respuestas (1)

Steven Lord
Steven Lord el 23 de Oct. de 2015
To tell Symbolic Math Toolbox to assume x is a real variable, use this code:
syms x real
or use ASSUME on the symbolic variable after the fact (see "help assume" for more information.)

Categorías

Más información sobre Symbolic Math Toolbox en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 23 de Oct. de 2015

Respondida:

el 23 de Oct. de 2015

Community Treasure Hunt

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

Start Hunting!

Translated by