% (ExampleSSBdemfilt.m)
% This program uses triangl.m to illustrate SSB modulation
% and demodulation
clear; clf;
ts=1.e-4;
t=-0.04:ts:0.04;
Ta=0.01; fc=300;
m_sig=triangl((t+0.01)/0.01)-triangl((t-0.01)/0.01);
Lm_sig=length(m_sig);
Lfft=length(t); Lfft=2^ceil(log2(Lfft));
M_fre=fftshift(fft(m_sig,Lfft));
freqm=(-Lfft/2:Lfft/2-1)/(Lfft*ts);
B_m=150; %
Bandwidth of the signal is B_m Hz.
h=fir1(40, [B_m*ts]);
s_dsb=m_sig.*cos(2*pi*fc*t);
Lfft=