help me to fix this finveser code

14 Ansichten (letzte 30 Tage)
TRINH
TRINH am 29 Okt. 2025 um 1:43
Kommentiert: Chuguang Pan am 29 Okt. 2025 um 2:30

Antworten (1)

Chuguang Pan
Chuguang Pan am 29 Okt. 2025 um 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 Kommentar
Chuguang Pan
Chuguang Pan am 29 Okt. 2025 um 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

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Programming finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by