I want to run for loop code so it returns different matrices. The below code is what i came up with to better explain it.
for i= 1:(r+1)
X_i = projection(data, epsilon)
U_i = cluster(X_i, number)
U_con = horzcat(transpose(U_i))
end
To explain better, I want to run the projection function projection(data, epsilon)
r
times and it means I would have X_1,X_2,...X_r
results( in matrix) and I would also run the cluster function r
times to have U_1,...U_r
matrices too. and then finally I would find the transpose of each U's
and concatenate them together.
How can I go about it? Regards.