In Matlab, I have a function handle defined as a vector like this
F = @(x) [...
coeff1*x(1)*x(4); ...
coeff2*x(3); ...
coeff3*x(7)*x(3) ...
];
In reality it has 150 rows. I need to extract different subsets the functions in the rows. For example make a new handle from the rows 3:17
of those in F
. But I can't just go indexing a handle. Is there a solution?
Edit: I need the subset as a new handle, in other words I can not evaluate the entire F and just select the solution rows.
Thanks in advance.