firstly i was used matrix s(n x n) where n x n is the size of data in the following code
A = yarbb(data,x)
linindices = sub2ind(size(s), Av(:, 1), Av(:, 2))';
auc= (ndash + 0.5 * nddash)/(ndash+nddash+nn);
but then i edit s(n x n) to become smit(n x n x p) where p is the max value of loop was used in other function so i want to use every value of smit as s (p times) in previous code say smit is (77 x 77 x 10) i want to use smit as (77 x 77) 10 times in previous code because smit is changed every time.