フィルターのクリア

question for a beginner

2 ビュー (過去 30 日間)
Eliraz Nahum
Eliraz Nahum 2018 年 9 月 22 日
回答済み: Star Strider 2018 年 9 月 22 日
hey, when using syms y(x) do I define both y and x as symbolic? I thought that I have to write it this way - syms y(x) x

採用された回答

Star Strider
Star Strider 2018 年 9 月 22 日
Not necessarily.
This works:
syms y(x)
y(x) = x^2;
as will this:
syms y x
y(x) = x^2;
while this will throw an error:
syms y
y(x) = x^2;
I default to defining all variables in a syms declaration, just to be safe (and compulsive).

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeConversion Between Symbolic and Numeric についてさらに検索

タグ

製品


リリース

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by