This will only work if your group owns a GPU node.
See below link for how to get a GPU node:
module load matlab_2015b
%allocate matrix X on the CPU
%send the matrix X to a matrix G on the GPU
G = gpuArray(X);
%multiply G by G on the GPU. S is a matrix on the GPU.
S = G*G;
% Get the result S back to the CPU. Y is a matrix on the CPU.
Y = gather(S);
More details are at below links