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

📄 terminator.m

📁 Cordic算法的Matlab实现
💻 M
字号:
%% description
%   Terminator play an important role in iterative
%   algorithms.In this project, there are mainly two 
%   conditions which terminate the process,zi=0 or 
%   yi=0.However, the word width for every digital 
%   system is finite, which relaxes the conditions. 
%   Therefore, we get
%                          zi < 2^(-wordwidth)
%       or                 yi < 2^(-wordwidth)
% input
%   z or y can play such a role
%   wordwidth is a system parameter
% output
%   signals the end of the process
%% code
function disable=terminator(z,acc)
if(nargin<2)
    acc=2^(-64-5-1);
end
if(abs(z)<acc)
    disable=1;
else disable=0;
end
end

⌨️ 快捷键说明

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