中文说明:资源描述功能[毕业,呃,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). %