매트랩으로 어떻게 푸는지 알려주세요ㅠ

매트랩으로 어떻게 푸는지 알려주세요ㅠ

작성일 2020.05.05댓글 1건
    게시물 수정 , 삭제는 로그인 필요

매트랩으로 어떻게 푸는지 알려주세요ㅠㅠㅠ 급해요ㅠㅠㅠ 제발 도와주세요 ㅠㅠㅠㅠ




profile_image 익명 작성일 -

syms t

% assume(0 <= t <= 48)

h = -0.12*t.^4 + 12 * t.^3 - 380*t.^2 + 4100*t + 220;

% (a)

v = diff(h)

a = diff(v)

% (b)

landing = solve(diff(a) == 0)

% (c)

ezplot(h, [0 landing])

ezplot(v, [0 landing])

ezplot(a, [0 landing])

% (D)

sv = solve(v, t);

ezplot(h, [0 48])

hold on

plot(double(sv), double(subs(h,sv)),'ro')

max(double(subs(h,sv)))