⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ls_time_4x2.m

📁 关于瑞利信道的仿真程序 关于瑞利信道的仿真程序
💻 M
字号:
function [H1,H2,H3,H4]=ls_time_4x2(y,chantype,sampletime)
% Pure time domain maximum likelihood estimation
% H1,H2,H3,H4: freq channel response from four Tx to this Rx
% y: received time domain signal on this Rx(column vector)

switch chantype,
    case 1,     % SUI-1 Channel
        tau = [0 0.4 0.9];      % tap delay in us
        load X_pinv_sui1.mat;
    case 2,     % SUI-2 Channel
        tau = [0 0.4 1.1];
        load X_pinv_sui2.mat;
    case 3,     % SUI-3 Channel
        tau = [0.0 0.4 0.9];
        load X_pinv_sui3.mat;
    case 4,     % SUI-4 Channel
        tau = [0 1.5 4];
        load X_pinv_sui4.mat;
    case 5,     % SUI-5 Channel
        tau = [0 4 10];
        load X_pinv_sui5.mat;
    case 6,     % SUI-6 Channel
        tau = [0 14 20];
        load X_pinv_sui6.mat;
    otherwise,
        error('Unrecognized channel model');
end
L=max(round(tau/sampletime))+1;

h=X_pinv*y;
h1=h(1:L).'; h2=h(L+1:2*L).';
h3=h(2*L+1:3*L).'; h4=h(3*L+1:end).';

H1=fftshift(fft(h1,2048));
H1(:,1877:2048)=[]; H1(:,1:173)=[];
H2=fftshift(fft(h2,2048));
H2(:,1877:2048)=[]; H2(:,1:173)=[];
H3=fftshift(fft(h3,2048));
H3(:,1877:2048)=[]; H3(:,1:173)=[];
H4=fftshift(fft(h4,2048));
H4(:,1877:2048)=[]; H4(:,1:173)=[];

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -