Creating a row vector of function handles

3 views (last 30 days)
Saurabh Madankar
Saurabh Madankar on 18 Feb 2022
Edited: Stephen23 on 18 Feb 2022
I have pre-defined function handles f_{i} using cell arrays for say i =1 to 8, so total 8 function handles. Now how do I create a new function handle, say g, which is a row vector consisting of these 8 function handles?
  1 Comment
Stephen23
Stephen23 on 18 Feb 2022
Edited: Stephen23 on 18 Feb 2022
Function handles are the only fundamental data type that cannot be concatenated into arrays. They are scalar only:
Multiple function handles can be stored in container class arrays, e.g. structure arrays, cell arrays.

Sign in to comment.

Answers (0)

Categories

Find more on Cell Arrays 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!