gusucode.com > matlab通信工程仿真源码(张德丰等编著)程序书籍 > matlab_code/matlab通信工程仿真源码(张德丰等编著)/第9章/li9_24.m
x = (-5:0.1:5)'; nct = nctpdf(x,10,1); t = tpdf(x,10); %绘图 plot(x,nct,'b-','LineWidth',2) hold on plot(x,t,'g--','LineWidth',2) legend('nct','t') end stairs(t,xr); %解码输出 hold on;plot(t,x); %原信号 ylabel('幅度');xlabel('时间/s');