How to concatenate on GPU with arrayfun?
3 views (last 30 days)
Show older comments
Hello, I have a function which I'm going to use with arrayfun to compress the code. Since the number of points to evaluate are high, I'm planning to use my GPU for the same. I am running into issues with concatenation. The function is as follows:
function s = probab(X,Y,Z)
load net2.mat
load Texp.mat
sigma = 0.35;
B = [X Y Z]';
T=net2(B);
[T, Texp] = clean(T,Texp);
A=(T-Texp).*(T-Texp);
S = sum(A);
s = exp(-S/(2*sigma^2));
end
I plan to integrate this later using trapz.
0 Comments
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!