I have a function that returns class, for example:
xgrid = [1,2,3]
vals = [4,3,6]
f = @(k)griddedInterpolant(xgrid*k, vals)
Then I can get class member, which is interpolant in this case. Then I can use interpolant to get value at every point.
inter = f(3) % for example
inter(100) % returns value at point 100.
Is there a way, I can do this in one construction? For example:
f(3)(100) % will return me value of interpolant