上最隆重也是:对n个变量的解析函数的梯度向量估计我要分享

On the most grand is: the n variables of the analy

matlab 函数 估计 解析 向量 梯度 变量 隆重

关注次数: 144

下载次数: 0

文件大小: 1.16 kB

代码分类: 其他

开发平台: matlab

下载需要积分: 2积分

版权声明:如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

代码描述

中文说明:资源描述功能[毕业,呃,finaldelta ] =(上最隆重也是乐趣,X0)%上最隆重也是:对n个变量的解析函数的梯度向量估计%的用法:[毕业,呃,finaldelta ] =(上最隆重也是乐趣,X0)%%使用衍生物


English Description:

Application backgroundfunction [grad,err,finaldelta] = gradest(fun,x0) % gradest: estimate of the gradient vector of an analytical function of n variables % usage: [grad,err,finaldelta] = gradest(fun,x0) % % Uses derivest to provide both derivative estimates % and error estimates. fun needs not be vectorized. %  % arguments: (input) %  fun - analytical function to differentiate. fun must %        be a function of the vector or array x0. %  %  x0  - vector location at which to differentiate fun %        If x0 is an nxm array, then fun is assumed to be %        a function of n*m variables.  % % arguments: (output) %  grad - vector of first partial derivatives of fun. %        grad will be a row vector of length numel(x0). %


代码预览