get_qr.m

来自「dft algorithm(no fft) (matlab)」· M 代码 · 共 9 行

M
9
字号
function [q, r] = get_qr(x, y)
%----------------------------------------------------------------
%   function "get_qr" computes the quotient and the remainder
%   when x is divided by y
%   i.e. (x = q*y + r)
%----------------------------------------------------------------
q = floor(x/y);
r = mod(x, y);

⌨️ 快捷键说明

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