I have 2 variables K and C, which I want a user to be able to enter values for. Once I have values for K and C, I want to create KC variables ie A1, A2, A3,… AKC (I think I can do this bit). I then want to create KC for loops where each variable A1…AKC takes values between 1 and x,
eg:
B=[ ]for A1=1:x for A2=1:x for A3=1:x (and so on) Q=[A1,A2,A3..] B=[B;Q] end endend
So that I end up with a matrix where each row is a different combination of the variables A1…AKC, and I have all possible combinations.
Thanks,
Erin
Best Answer