📄 restructor.asv
字号:
function [y1,y2]=restructor(x1,x2,dw)
% 恢复部分的程序,主要完成对接收信号的插值;
% x1,x2
% 参数yy1,yy2分别代表的是插值(M=2)处理得到的结果.
% [m1,n1]=size(x1),
% [m2,n2]=size(x2),
% y=zeros(1,2*m1-1);
% t1=zeros(1,2*m1-1);
% t2=zeros(1,2*m2-1);
% for k=1:m1
% t1(2*k-1)=x1(k);
% t2(2*k-1)=x2(k);
% end
% %close all;figure;subplot(2,1,1),plot(t1);subplot(2,1,2),plot(t2);
% % 将插值结果通过低通滤波器;
% b1=lowpass2(dw);
% a=[1];
% y1=10*filter(b1,a,t1);
% y2=10*filter(b1,a,t2);
% close all;figure;subplot(2,1,1),plot(yy1);subplot(2,1,2),plot(yy2);
y1=interp(x1,2);
y2=interp(x2,2);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -