help me to fix this finveser code

15 次查看(过去 30 天)
TRINH
TRINH 2025-10-29,1:43
评论: Chuguang Pan 2025-10-29,2:30

回答(1 个)

Chuguang Pan
Chuguang Pan 2025-10-29,2:27
syms t;
v01 = 30;
v02 = 25;
h1 = 25;
h2 = 30;
g = 9.78;
x1(t) = v01*t;
y1(t) = h1 - (1/2)*g*t^2;
y1(finverse(x1,t))
ans = 
  1 个评论
Chuguang Pan
Chuguang Pan 2025-10-29,2:30
The y1 should be a symfunction if you want to call it with input.
y1 = h1 - (1/2)*g*t^2; % y1 is sym expression
y1(t) = h1 - (1/2)*g*t^2; % y1 is sym function

请先登录,再进行评论。

类别

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

产品

Community Treasure Hunt

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

Start Hunting!

Translated by