Hello I have 3 variables i,j and k. I want to run a loop on each of them such that for each value of i, one value of j is considered and iterated over all values of k.Then for same i, take second value of j and iterate over all values of k and so on... Then repeat this process for all the values of i and save the output. For example for i=1,j=1 iterate over all values of k.Then for i=1, j=2 iterate over all values of k so on. Then save the output m for all the values of i and j over k iterations.
for i=1:30
for j=1:5
for k=1:100
m=i*0.5*j*sin(k);
end
end
end
May be my code is not right as well?