Modeling Velocity of a Rocket Many real-world objects travel in jagged manner that is best represented by piecewise func
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Modeling Velocity of a Rocket Many real-world objects travel in jagged manner that is best represented by piecewise func
Modeling Velocity of a Rocket Many real-world objects travel in jagged manner that is best represented by piecewise functions. For example, the velocity of a rocket may change sharply when thrusters are enabled or disabled and due to various external factors. The velocity of a rocket can be modelled by v(t) where t represents the time. 11t² - 5t 1100-5t v(t) = 50t+2(t-20)25 1520e-0.1(-30) 0 0≤t≤10 10 ≤ t ≤ 20 20≤t≤ 30 t> 30 otherwise Write a function that has one input, time, and produces one output, velocity. Your function should work for a single time or a vector of time values that are not in order. The function header should be formatted similarly to the following: function [out1] = RocketVelocity (in1) Remember you are free to use whatever variable names you want, but they must be listed in the same order as given in the input/output lists provided above.