function v = paraVelocity(t)
% -----------------------------------------------------
% paravelocity.m
% -----------------------------------------------------
% Defines the velocity as a function (of time and other
% global variables). 
% -----------------------------------------------------
% Syntax: v = paravelocity(t)
% Inputs: t = time as a vector from 0 to ...
% Outputs: v = velocity as a vector (function of t)
%          
% -----------------------------------------------------
% Notes: Other parameters must be defined as global. 
% -----------------------------------------------------
% Copyright and license details available at matlabmarina.com
%------------------------------------------------------

% define required parameters as global variables
global m g c

% compute velocity
v = (m * g / c)*(1 - exp(-c * t / m));
end