I saw that one can run matlab function on the GPU in Matlab 2011a. In the introductory video they run the function phaseangle(gx,gy), where gx and gy are matrices on the GPU, then these can be speed up by using arrayfun(@phaseangle, gx, gy). which implies that the function phaseangle is run for each element in gx and gy
Now, I not only have a function(x,y) with two input arguments, but I have a function with arguments function(x,y, parameter). Can I somehow run this on the GPU as I can build matrices for my arguments x,y but parameter is supposed to be the same for all x,y.... Thanks a lot.