erfinv.m
来自「matlab波形优化算法经常要用到的matlab toolbox工具箱:yalm」· M 代码 · 共 40 行
M
40 行
function varargout = erfinv(varargin)
%ERFINV (overloaded)
% Author Johan L鰂berg
% $Id: erfinv.m,v 1.5 2007/08/02 18:16:26 joloef Exp $
switch class(varargin{1})
case 'double'
error('Overloaded SDPVAR/ERFINV CALLED WITH DOUBLE. Report error')
case 'sdpvar'
varargout{1} = InstantiateElementWise(mfilename,varargin{:});
case 'char'
X = varargin{3};
F = set(-1+1e-9 <= X <= 1-1e-9);
operator = struct('convexity','none','monotonicity','increasing','definiteness','none','model','callback');
operator.bounds = @bounds;
varargout{1} = F;
varargout{2} = operator
varargout{3} = X;
otherwise
error('SDPVAR/ERF called with CHAR argument?');
end
function [L,U] = bounds(xL,xU)
if xL<=-1
L = -inf
else
L = erfinv(xL);
end
if xU>=1
U = inf;
else
U = erfinv(xU);
end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?