Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Matlab : Function handle givin array to cell array of function handles

  1. Mar 5, 2014 #1

    I am currently in a situation where I have a function handle giving as putput an array of doubles. I would like to convert this to a cell array of function handles, each giving a component of the previous array.

    The original function handle is produced by a built-in matlab function, so I don't see an easy way of redefining the function to give me what I want, but maybe there is a trick I am not aware of?

    So far, google and the matlab documentation have not been of any help.

    Any help would be greatly appreciated!
  2. jcsd
  3. Mar 7, 2014 #2


    User Avatar
    Gold Member

    This isn't enough information; show some code so we can see *specifically* what's going on.
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook