6 Plot ballistic motion Write a program plotballisticm that
     6. Plot ballistic motion. Write a program, plotballistic.m, that plots the following function: h(t) = ho + Vot--gt  
  
  Solution
%% plotballistic.m % James Yu % Sept 10, 2015 clc, clear; %% Input data and set constant g = 9.8; up = randi(50) + 20; h = randi(up); v = randi(up); range = [0 randi(1e3) + 1e3]; amnt = randi(1e5) + 1e5; %% Calculation t = linspace(range(1), range(2), amnt); ht = h + v .* t - g .* t .^ 2 ./ 2; %% Output result figure, plot(t, ht, \'-k\'); %% Clear up the mess clearvars
