Velocity of a Weather Balloon

조회 수: 10 (최근 30일)
Ertugrul Icer
Ertugrul Icer 2020년 6월 16일
댓글: Image Analyst 2020년 6월 17일
Let the following polynomial represent the velocity of a weather balloon following the launch:
v(t) = -0.25*t.^3 + 36*t.^2 - 760t + 4100
Here, "t" needs to be dened as a symbolic variable. By using the given velocity polynomial, construct a MATLAB code to:
a) Find the altitude polynomial of the balloon in terms of t where constant term of the altitude polynomial is dened as "9".
b) Determine when the balloon hits the ground (Your code should give one exact answer as an acceptable numerical value for t).
c) Obtain plots of altitude and velocity from time 0 until the balloon hits the ground by using the command "ezplot".
  댓글 수: 2
David Hill
David Hill 2020년 6월 16일
What have you done? Do you have a specific question?
Ertugrul Icer
Ertugrul Icer 2020년 6월 16일
I couldn't write the code the question asked for

댓글을 달려면 로그인하십시오.

채택된 답변

David Hill
David Hill 2020년 6월 16일
I will give you a start:
syms t;
v=-0.25*t.^3 + 36*t.^2 - 760*t + 4100;
s=int(v)+9;
a=diff(v);
ezplot(s,[0,155.7]);
figure;
ezplot(v,[0,155.7]);
  댓글 수: 5
Ertugrul Icer
Ertugrul Icer 2020년 6월 16일
i think its true but why; why u write like (v=[-.25,36,-760,4100];) how can be possible without using (t)
David Hill
David Hill 2020년 6월 17일
Because it is a polynomial and matlab has special functions that support polynomials.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Image Analyst
Image Analyst 2020년 6월 17일
Another hint:
t = linspace(0, 125, 1000);
v = -0.25*t.^3 + 36*t.^2 - 760*t + 4100 % Your equation
% Now plot it:
plot(t, v, 'b-', 'LineWidth', 2);
grid on;
xlabel('t', 'FontSize', 20);
ylabel('Velocity', 'FontSize', 20);
% Draw a line at v=0
yline(0, 'Color', 'black', 'LineWidth', 2);
  댓글 수: 1
Image Analyst
Image Analyst 2020년 6월 17일
Another hint: roots() function.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Polynomials에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by