I have built up a cell array of function_ handles
like below:
B = {@(x) x(1)+x(2)^2
@(x) x(1)-2*x(2)}
Assume A = [1 2; 3 4]
. I need to perform a matrix multiplication like A*B
to have a cell array as
A*B = {@(x) x(1)+x(2)^2 + 2*(x(1)-2*x(2))
@(x) 3*(x(1)+x(2)^2) + 4*(x(1)-2*(x(2))}
How can I do this?