function v =
plotting (t,g,cd,m);
% Wes Donald
% Lab 1, 8/23/05, Tuesday
% Plotting
% To illustrate the use of the
program
length(t);
g=9.81; m=68.1; cd=0.25;
v=sqrt(g*m/cd)*tanh(sqrt(g*cd/m)*t)
plot(t,v)
title('Plot of
v versus t')
xlabel('Values
of t')
ylabel('Values
of v')
grid
function v = intplot(t,g)
% Wes Donald
% Lab 2, 8/30/05, Tuesday
% Plotting
% To illustrate the use of the
program
cd = input ('Enter the value of cd:');
m = input ('Enter the value of m:');
v=sqrt(g*m/cd)*tanh(sqrt(g*cd/m)*t);
plot(t,v)
grid on
hold on
title('Plot of
v versus t')
xlabel('Values
of t')
ylabel('Values
of v')
disp('velocity
is')
disp(v)
function fprintfdemo(t,v)
out = [t,v]';
fprintf('t v
\n');
fprintf('%5d %10.3f
\n',out);