1 Star 0 Fork 1

杂杳/YALMIP

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
sech.m 636 Bytes
一键复制 编辑 原始数据 按行查看 历史
function varargout = sech(varargin)
switch class(varargin{1})
case 'sdpvar'
varargout{1} = InstantiateElementWise(mfilename,varargin{:});
case 'char'
operator = CreateBasicOperator('bell-shape','callback');
operator.derivative = @(x)(-tanh(x).*sech(x));
operator.stationary = [0 1];
operator.inflection = [-inf 1 -0.881493604 -1 0.881493604 1];
operator.range = [0 1];
varargout{1} = [];
varargout{2} = operator;
varargout{3} = varargin{3};
otherwise
error(['SDPVAR/' upper(mfilename) ' called with weird argument']);
end
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Matlab
1
https://gitee.com/codeinLinXu/YALMIP.git
git@gitee.com:codeinLinXu/YALMIP.git
codeinLinXu
YALMIP
YALMIP
develop

搜索帮助