【发布时间】:2017-11-19 17:54:37
【问题描述】:
所以我对如何组织我的问题有点困惑。
所以作业状态如下:
键入执行数值推导的 m 文件 numeric_derivative.m。利用 它在 f(x) = 3x^2 /(ln(1-x))
时计算 f'(-3)在m文件中你使用h = 10^-6 并有如下mainfunction:
function y = numericalderivative (f, x)
% Calculates the numerical value in the case of f in punk x.
% --- Input ---
% f: function handle f(x)
% x: the point where the derivative is calculated
% --- output ---
% y: the numerical derivative of f on the point x
如果我想将其保存为文件并在matlab中运行程序,那么使用句柄不是多余的吗?
【问题讨论】:
标签: matlab derivative