0
function d = f(x)
Vi = 0
Vf = 25
df = -150
d = (Vf^2-Vi^2)/(2*df)
end
% Using this kinematic equation we can solve for the time
% after converting the measuerments again and plugging them
% into the equation
function t1 = g(x)
Vi = 25
Vf2 = 5
d2 = - 2.5
t1 = (Vf2-Vi)/d2
end
% Finding deceleration of truck using kinematic equation.
function d2 = h(x)
vF3 = 5
t2 = 8
a3 = -2.5
d2 = (vF3*t2)-(0.5*a3*(t2^2))
end
私はMATLABを使い慣れていないので、私は3つの式を作成しなければならない私が実行をクリックすると、最初の関数しか解けません。1つの.mファイルに複数の関数があり、1つの関数の答えしか受け取らない
[もっと速い回答を得るために、どのような状況で「緊急」や他の類似のフレーズを追加することができますか?](// meta.stackoverflow.com/q/326569) - 要約は、ボランティアに対処する理想的な方法ではなく、おそらく回答を得ることに逆効果があります。これをあなたの質問に追加しないでください。 – halfer