I am having trouble doing simple vectorization operations for GPU using bsxfun and arrayfun.
For example, How would I do this operation on a GPU :
X(X>num)=num
I tried :
X = bsxfun(@gt, X, num)
Then I am stuck at the assignment. I am guessing the ternary operations are not possible?
Thank you so much for helping out.
Best Answer