image thumbnail
from Fourier Analysis of a Rectangular Pulse by Dimuthu Senanayaka
Fourier Analysis of the Rectangular pulse...

rect_pulse_gen.m
close all  %clear all parameters in workspace.
dt=.001;
t=[-25:dt:25];  %time axis
y=(5/2)* (sign(t+10)-sign(t-10));

plot(t,x);
title('Rectangular pulse with width 10ms');
xlabel('time(ms)');
ylabel('Amplitude(V)');

Contact us at files@mathworks.com