So I have two cell arrays:
A = {2 2 2 2}
B = {[1 2] [3 2] [5 5] [7 7]}
and a function of two arguments:
F = @(a, b) [a * b(1), (b(2) / 3), (b(1) + a) * 22]
And I want to apply the function to the two cell arrays like so:
idealfun(F, A, B)
and have it do the right thing (return a cell array with four cells of 1x3 vectors). Any ideas how to find/write idealfun
?