Question: This is a MATLAB GRADER problem, please only use basic coding. No loops or while statement Problem Summary Write a matlab script (an m-file) based
This is a MATLAB GRADER problem, please only use basic coding.
No loops or while statement
Problem Summary Write a matlab script (an m-file) based on the "Vertical Motion Wtih Gravity" exercise. Make the following modifications: use the gravity of Jupiter (one decimal precision, round using standard rounding practice) Determine the initial velocity required such that the height peaks in between 5 km and 5.1 km . Please please determine the value through trial and error! I intend for this process to help demonstrate two future programming skills. Trial and error here means... 1. try an initial velocity value in your script. 2. run script 3. analyze the results 4. adjust initial velocity 5. run script again 6. repeat Your code must assign the appropriate value to the following variables and perform the specified actions gravity Jupiter (in m/s^2) initVelocity = velocity required to peak in between 5 km and 5.1 km . time = a matrix representing your simulation time values from 0 to 40 seconds with 0.1 timestep. (in seconds) height = a matrix representing the height over time (in meters) plot height against time. Plot should include informative axis and title. 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
