clear ;
m=[1 1 1000101101];
Lm= length (m);
F =200;
f =800;
A=1;
Q=fF;
if Q> =3
M=500;
t= (0:M-1)M/f;
carry1 =repmat(Asin(2 pi ft),1,Q);
Lcarry1 = length (carry1);
carry2 = kron (ones (size (m)),carry1);

tau= (0:N-1)/(M-1)/f;

Tmin =min(tau);

Tmax = max (tau);

T = ones (size (carry1));

dsig =kron (m,T);

figure
subplot(3,1,1);
plot (tau,dsig);
title(‘数字信号)
axis([Tmin Tmax -0.21.21)

subplot(3,1,2);
plot (tau,carry2);

title (载波波形’)

axis ([Tmin Tmax -1.2 A1.2A])

subplot(3,1,3);

grid on
gxe/iin Tmx -1.2A1.2.A))
figure
subplot(4.1,1 );plot (tau,sig. jmul);

title('信号相乘后的波形’)

axis([Tmin Tmax -0.2 1.21)
(ord,omega_c]=buttord(4
pi
f0.6.4piE0.8,2,30.‘e0;
[num,den]= butter (Ord,omega c,‘s’);
h=tf (num,den);

x=Isim(h,sig Jmul,tau);

subplot(4,1,2);

plot (tau,x);

title (滤波后的波形’)
axis(ITmin Tmax -0.3 0.81);

th=0,25;

t judge= (0:Lm -1)* Lcarryl +Lcarry12;

y= (x(化_judge)’;

y_ judge=1* (Yy> =th)+0* (y< =th);

y_value = kron y. _judge ,ones (size (r1));1)抽样判决后的数字信号波形
n_tau=tau+0.5/E;

subplot(4,1,3);

plotin tau,y. value);

title(抽样判决后的数字信号波形’)
axis(min(n
tau)max(n. _tau) -0.21.2]1

subp1ot(4,1,4);

plotitau,dsig);

axis([TminTmax -0.21.21)
end

06-02

11-19
07-08
09-29 2万+
07-05
12-02
05-29 4697
06-11 215