作业帮 > 综合 > 作业

MATLAB 中怎么求N维向量函数的梯度,求完怎么赋值?

来源:学生作业帮 编辑:搜狗做题网作业帮 分类:综合作业 时间:2024/08/07 12:52:27
MATLAB 中怎么求N维向量函数的梯度,求完怎么赋值?
MATLAB 中怎么求N维向量函数的梯度,求完怎么赋值?
[FX,FY] = gradient(F) returns the numerical gradient of the
matrix F.FX corresponds to dF/dx,the differences in x (horizontal)
direction.FY corresponds to dF/dy,the differences in y (vertical)
direction.
When F is a vector,DF = gradient(F) is the 1-D gradient.