Professional Documents
Culture Documents
HW 1
HW 1
1. The height of an object thrown in the air can be found using the following equation.
where y is the height in meters of the object above ground level after t seconds.
Write a function which calculates the height of an object for the given t values. Then, run
your function for the t values ranging from 0 to 15 with 200 evenly spaced points and plot
your result for time versus height. Use blue line colour, dash line type and + data point
type for your plot, label your axes. Write the maximum height of the object and the time
to get there as the title of your plot.
2. Write a program (.m file) which asks the user about the magnitude of the force level (in
Newtons) in order to lift a small part and the program will display a message about the
force level applied considering following cases.
The program should also display a message if the force input is bad data.
Good Luck