Hi there. I'm new in Matlab parallel computing and confused by the Classification of Variables.I try to rewrite the function randsample in a simple way as following,
A=rand(1,36); parfor t=1:n index=randperm(36,6); x=A(index); %=randsample(A,6);
......
However,here the matrix A was labeled as a variable indexed but not sliced. How can I slice A? Thanks a lot.
Best Answer