lorentzian.m

来自「A fast customizable function for locatin」· M 代码 · 共 8 行

M
8
字号
function g = lorentzian(x,position,width)% lorentzian(x,position,width) Lorentzian function.% where x may be scalar, vector, or matrix% position and width scalar% T. C. O'Haver, 1988% Example: lorentzian([1 2 3],2,2) gives result [0.5 1 0.5]g=ones(size(x))./(1+((x-position)./(0.5.*width)).^2);

⌨️ 快捷键说明

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