How to evaluate an array of function handles at different points
Show older comments
I have a cell array of 3 functions handles
phi={@ (x,y) 1-x-y,@ (x,y) x,@(x,y) y}
I need to evaluate it at 4 different points (0,0) (1,0) (0,1) and (1/3 1/3)
q=[0 1 0 1/3;0 0 1 1/3]
to create an 3x4 array of values where each row represents a function at four different points
How do I do it?
Thanks
Accepted Answer
More Answers (0)
Categories
Find more on Data Type Conversion 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!