📄 theta_i.m
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -