Calling a function f inside f,how can we do this
1 view (last 30 days)
More Answers (1)
Babak on 22 Apr 2013
Just as a side issue: You better change the name of the function from a one letter name "f" to at least a 2 letter name. I remember I was trying to compute function of a function and MATLAB has issues (bugs) in calculating the result..(not sure if it's already fixed or not)... but things like sin(f(2)) or g(f(x)) may fail for a generic f function even if f is correctly defined.
This has nothing to do with the "recursion" Walter is talking about.