below is the used code:
close All
clear All
% Part 1
Ts=0.001;Fs=1/Ts;frequency_axis=-Fs/2:Fs/2;F1firsthalf=rectpuls(frequency_axis-10,5);figure,plot(frequency_axis,F1firsthalf),gridaxis([-100 100 0 2]);title('Ideal bandpass filters')xlabel('Angular Frequency(rd/s)')ylabel('Amplitude')
Best Answer