Hello Everyone
Can you please tell me how to save indes values of the following code from the for loop?
rng defaultM = zeros(randi([3 6]),randi([3 6]))[u,v] = size(M)for i = 1:u for j = 1:v ind1(i) = i; ind2(j) = j; indices = [ind1(i),ind2(j)] endend
I want to store the values in the form of two colums and m*n rows.
Thank you
Best Answer