how to define a symbolic variable with type ???

조회 수: 15 (최근 30일)
Vivek roy
Vivek roy 2015년 10월 23일
답변: Steven Lord 2015년 10월 23일
i want to declare a symbolic variable S and define the type as REAL. MATLAB takes the default type as COMPLEX variable.

답변 (1개)

Steven Lord
Steven Lord 2015년 10월 23일
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.)

카테고리

Help CenterFile Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by