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

AI Thread Summary
A user is seeking assistance in converting an output array of doubles from a function handle into a cell array of function handles in MATLAB. The original function handle is generated by a built-in MATLAB function, complicating the process of redefining it. The user has not found relevant solutions in online resources or MATLAB documentation. They request specific code examples to clarify their issue. The discussion emphasizes the need for practical coding solutions to achieve the desired conversion.
espen180
Messages
831
Reaction score
2
Hi.

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!
 
Physics news on Phys.org
This isn't enough information; show some code so we can see *specifically* what's going on.
 
Back
Top