📄 ex5_1.m
字号:
% Example 5-1: Computation of Time-varying Channel
% Transfer Matrix Wc
clear all
K = 4; % Number of time samples (I/O observations)
N = 4; % Number of channel inputs
M = 4; % Number of channel outputs
X = [1 -2 2 5
3 1 2 3
7 4 3 -1
2 3 5 2]% Input signal matrix
Y = [1 4 2 1
8 -1 1 2
9 3 8 4
2 7 -3 5]% Output signal matrix
[Q, R] = qr(X); % QR-factorize input matrix
Ux = Q % Orthonormal input basis
Wx = Ux*X % Generalized Fourier coefficients of input
Wy = Ux*Y % Generalized Fourier coefficients of output
Wc_hat = pinv(Wx)*Wy % Channel Transfer Matrix
Y_hat = X * Wc_hat % Determine estimate of output matrix
Errornorm = norm(Y-Y_hat,'fro') % Calculate Frobenius
% norm of output signal error matrix
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -