I have the following computation I'd like to vectorize in matlab.
I have a N x 3 array, call it a
.
I have a 4 x 1 cell array of function handles, call them b
.
I would like to create an Nx4 matrix c
, such that c(i,j) = b{j}(a(i,:)
.
b
is actually an array, but I don't know how to write down my representation for c in a format that matlab would understand that uses a matrix.