Professional Documents
Culture Documents
h = zeros(1,8 * b);
x = zeros(1,8 * b);
t = linspace(-3,5,8 * b);
h(2 * b:3 * b) = (1 * t(2 * b:3 * b)) + 1; %Increasing Interval of the
Triangular Wave
h(3 * b:4 * b) = (-1 * t(3 * b:4 * b)) + 1; %Decreasing Interval of the
Triangular Wave
x(4 * b:5 * b) = 1;
subplot(3,1,1);plot(t,x);
%Rectangular Wave
%Plotting the Signal