May I ask what the meaning of is bf = @(p, varargin) b*exp((p-opt.pRef)*c); what does the @(p, varargin) do?
Thank you
Asked
Active
Viewed 30 times
0
Ander Biguri
- 35,140
- 11
- 74
- 120
Sul At
- 9
- 1
-
1It make an "anonymous function", i.e. now `bf` is a function that you can call as `bf(value, ....)` – Ander Biguri Jun 25 '21 at 08:52
-
https://www.mathworks.com/help/matlab/matlab_prog/anonymous-functions.html – Luis Mendo Jun 25 '21 at 09:12