필터 지우기
필터 지우기

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일

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Conversion 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