I have created one loop inside another in matlab, and i want to create a matrix inside this second loop that gives the values of the two increments plus a parameter that is being calculated. I made the following code but the matrix is just saving the last values, so it is not a matrix is a vector:
for inclin=29:1:39
for alfa=1:1:90
Ii_perc=...
Di_perc=...
Gi_perc=...
r=...
matriz=[inclin alfa r]
end
end
So, i want to have a matrix with the different combinations of inclin/alfa/r that the loop gives in each loop, i.e, something like this:
matriz =[29 1 0.34
29 2 0.32
29 3 0.40
...........]
I really need some help to solve this problem.. Thanks!