gaus_mar.m

来自「详细介绍了cdma通信系统功率控制的算法」· M 代码 · 共 12 行

M
12
字号
function [X]=gaus_mar(X0,rho,N)% [X]=gaus_mar(X0,rho,N)%		GAUS_MAR  generates a Gauss-Markov process of length N.%   		The noise process is taken to be white Gaussian%   		noise with zero mean and unit variance.for i=1:2:N,  [Ws(i) Ws(i+1)]=gngauss;        % Generate the noise processend;X(1)=rho*X0+Ws(1);                % First element in the Gauss-Markov processfor i=2:N,  X(i)=rho*X(i-1)+Ws(i);          % the remaining elementsend;

⌨️ 快捷键说明

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