theta_i.m

来自「Describes how to find the theta value in」· M 代码 · 共 15 行

M
15
字号
function theta = theta_i(In_Sig,h)

% To find the Theta_i value to compute the Mean Value
theta = 0;
for j=1:length(In_Sig-1)
% check the bit is either 0 or 1
    if In_Sig(j)== 1
        Aj = 1;   % If one then Aj will be 1
    elseif In_Sig(j) == 0
        Aj = -1;  % If one then Aj will be -1
    end;
%Calculate the Theta_i value

    theta = theta + (pi*h*Aj);
end

⌨️ 快捷键说明

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