%以下为手动编程方法,也可调用matlab集成函数dmod,具体调制方式见doc. n = [0:0.01:5.99]; x1 = ones(1,100); x2 = zeros(1,100); x3 = [x1,x2,x1,x2,x1,x2]; fc = 5; Wask = cos(2pifcn); Yask = x3.Wask; subplot(3,1,1); plot(n, Yask); hold on; plot(n,x3,'r','LineWidth',2); title('BASK'