How to create a dynamic function handle?
11 views (last 30 days)
Star Strider on 22 Nov 2022
I have no idea what you are asking.
It is straightforward to create a function handle that accepts various function arguments, either for a specific function or an existing function.
f = @(x,y) exp(-(x.^2 + y.^2)/5);
[X,Y] = ndgrid(-5:0.1:5);
surf(X, Y, f(X,Y))