how to define a symbolic variable with type ???

11 Ansichten (letzte 30 Tage)
Vivek roy
Vivek roy am 23 Okt. 2015
Beantwortet: Steven Lord am 23 Okt. 2015
i want to declare a symbolic variable S and define the type as REAL. MATLAB takes the default type as COMPLEX variable.

Antworten (1)

Steven Lord
Steven Lord am 23 Okt. 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.)

Kategorien

Mehr zu Symbolic Math Toolbox finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by