Borrar filtros
Borrar filtros

Error using plot for symbolic function

1 visualización (últimos 30 días)
Sam
Sam el 28 de Dic. de 2017
Editada: Walter Roberson el 28 de Dic. de 2017
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...

Respuesta aceptada

Walter Roberson
Walter Roberson el 28 de Dic. de 2017
plot(t, g(t))

Más respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by