⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gainki.m

📁 Cordic算法的Matlab实现
💻 M
字号:
%% description
%   this program can be used to compute the gain of CORDIC
%   processing systems at each iterative step
%   Inputs:
%       m, represents the mode of the computing system
%       Fi, elementary shifts for the i-th iteration
%           CAUTION: m and Fi can be both vectors
%   Outputs:
%       Ki, i-th processing gain
%% code
function Ki=gainKi(Fi,m)
Ki=sqrt(1+m.*2.^(-2*Fi));
if(m==-1 && Fi(1)==0)% when m=-1, Fi can't be 0
    Ki(1)=1;
end
end

⌨️ 快捷键说明

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