i keep getting syntax error please help

1 次查看(过去 30 天)
x_p = -0.3906sin(0.559t) + 156.25cos(0.559t); % steady-state motion

回答(1 个)

Luca Ferro
Luca Ferro 2023-5-1
to multiply you have to use *.
Assuming you defined or sym t,
x_p = -0.3906*sin(0.559*t) + 156.25*cos(0.559*t);

类别

Help CenterFile Exchange 中查找有关 Functions 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by