help me to fix this finveser code

조회 수: 14 (최근 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