Hi, please help me out. I am trying to figure out how to write a number of loops an n amount of times, and I just don't manage.
Say that, for n = 10, I want to create 10 loops, each from 0 to 1.
for e1=0:1
for e2=0:1
for e3=0:1
for ...
for ...
for ...
for ...
for ...
for ...
for ...
Expression=...
end
end
end
end
end
end
end
end
end
end
Is there a simple way to do this, so that I can vary the value of n each time I am running the code?
Say that, for n = 10, I want to create 10 loops, each from 0 to 1.
for e1=0:1
for e2=0:1
for e3=0:1
for ...
for ...
for ...
for ...
for ...
for ...
for ...
Expression=...
end
end
end
end
end
end
end
end
end
end
Is there a simple way to do this, so that I can vary the value of n each time I am running the code?