Artj Chern
Artj Chern

Reputation: 11

Editing an array of function handle like A= @(x)[ ... ]

I have the following question. I created an array of function handle like

A= @(x) [2*x; 3+x; 3-5*x; 4+7*x];

and I like to get a new array

B=@(x)[3+x; 4+7*x] easily.

Do you know how to get some components of function handle array?

And I'd like to use this new array of function handle for solving ODEs with standard methods like ode23, ode45. Is it the right definition of function handle or I should use the cell array definition instead?

Your sincerely Artem

Upvotes: 1

Views: 63

Answers (0)

Related Questions