Vectorized Evaluation of multiple function handles at a point

2 views (last 30 days)
Hi,
I have a structure of function handles and I am trying to evaluate all the functions at a given point. This step is time consuming with the following line of code
structfun(@(z) (z(x)),f);
where f is the structure of function handles (f.a, f.b . . . )
I also tried to convert the struct to cell array and use feval but the resulting time taken was the same.
Please advise
Thanks & Regard Robin Philip

Answers (0)

Categories

Find more on Structures in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!