[C] 纯文本查看 复制代码
% 周期延长的长度L = 36 ;% 计算延长后的序列x_extended = wextend('1D','sym',x1,L);% 绘制延长后的信号x = 1:length(x_extended)plot(x(1:36),x_extended(1:36),'r',x(36:107),x_extended(36:107),'b',x(107:143),x_extended(107:143),'r-')% 添加图例legend('Front Extended Singal','Orginal Data','Later Extended Singal')