No BSD License  

Highlights from
Signals & Systems: Continuous and Discrete, 4e Companion Software

from Signals & Systems: Continuous and Discrete, 4e Companion Software by Rodger Ziemer
Companion Software for Signals & Systems: Continuous and Discrete, 4e

c3ex13.m
%	Example 3-13
%
t = -3:.001:3;
[x1,x1_dot,x1_ddot,x1_dddot] = rsd_cos(t+2);
[x2,x2_dot,x2_ddot,x2_dddot] = rsd_cos(t);
[x3,x3_dot,x3_ddot,x3_dddot] = rsd_cos(t-2);
x = x1+x2+x3;
x_dot = x1_dot+x2_dot+x3_dot;
x_ddot = x1_ddot+x2_ddot+x3_ddot;
x_dddot = x1_dddot+x2_dddot+x3_dddot;
subplot(4,1,1),plot(t,x),xlabel('t'),ylabel('x')
subplot(4,1,2),plot(t,x_dot),xlabel('t'),ylabel('x_dot')
subplot(4,1,3),plot(t,x_ddot),xlabel('t'),ylabel('x_ddlot')
subplot(4,1,4),plot(t,x_dddot),axis([-3 3 -150 150]),...
	,xlabel('t'),ylabel('x_dddot')

Contact us at files@mathworks.com