www.gusucode.com > matlab编程16QAM的仿真源码程序 > matlab编程16QAM的仿真源码程序/16QAM/plot_2way.m

    function plot_2way(x1,x2,len,t)
%绘制正交信号图
subplot(2,1,2);
plot((1:len)*t,x2(1:len));
axis([0 len*t -4 4]);
hold on
plot((1:len)*t,x2(1:len),'.','color','red');
hold off
xlabel('虚部信号');
subplot(2,1,1);
plot((1:len)*t,x1(1:len));
axis([0 len*t -4 4]);
hold on
plot((1:len)*t,x1(1:len),'.','color','red');
xlabel('实部信号');
hold off