Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- X = [-15:15 0 -15:15 0 -15:15];
- gpuX = gpuArray(X);
- gpuE = expm(diag(gpuX,-1)) * expm(diag(gpuX,1));
- gpuM = mod(abs(gpuE),2);
- gpuF = gpuM + fliplr(gpuM);
- imagesc(gpuF);
- colormap(flip(gray));
- Link: https://it.mathworks.com/help/parallel-computing/gpuarray.html
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement