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.

回答 (1 件)

Steven Lord
Steven Lord 2015 年 10 月 23 日

0 投票

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.)

カテゴリ

ヘルプ センター および File ExchangeSymbolic Math Toolbox についてさらに検索

タグ

質問済み:

2015 年 10 月 23 日

回答済み:

2015 年 10 月 23 日

Community Treasure Hunt

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

Start Hunting!

Translated by