?? 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 + -