Is there something similar to MATLAB's function handles in MATA? It seems like it would be similar to function pointers, except that you can specify default parameters to the function.
For instance, if I have a function, func_a(a, b, c), and I want to pass it in as an argument to another function but with b and c pre-specified so it is passed in as a function with only one argument.
In MATLAB, we could do something like this: simp_func_a = @(a)func_a(a, b0, c0), where b0 and c0 are defined in the calling function. Is there any way to do the same in MATA?
For instance, if I have a function, func_a(a, b, c), and I want to pass it in as an argument to another function but with b and c pre-specified so it is passed in as a function with only one argument.
In MATLAB, we could do something like this: simp_func_a = @(a)func_a(a, b0, c0), where b0 and c0 are defined in the calling function. Is there any way to do the same in MATA?
Comment