Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在考虑将函数传递给函数。
我想要做的是创建一个基于有限差分的函数,我可以将不同的函数传递给它以进行区分。
例如:
function ybar = diff_finite ( x , h , function_inquestion) ybar = ((function_inquestion(x+h) - function_inquestion(x)) / h end
提前致谢
看看函数句柄。