フィルターのクリア

Error using plot for symbolic function

1 回表示 (過去 30 日間)
Sam
Sam 2017 年 12 月 28 日
編集済み: Walter Roberson 2017 年 12 月 28 日
Hello,
My code is the following one:
syms g(x) x
t = [0:0.005:4];
wn = 10;
zeta = 2;
g(x) = wn/(sqrt((zeta*zeta)-1)) * exp(-(zeta*wn*x))*sinh(wn*sqrt((zeta*zeta)-1)*x);
plot(t,g(x));
I get the error 'A numeric or double convertible argument is expected'. I can't find what i'm doing wrong...

採用された回答

Walter Roberson
Walter Roberson 2017 年 12 月 28 日
plot(t, g(t))

その他の回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by