oosterling
Mechanical
- Mar 15, 2007
- 2
Hi,
i have a (basic) question about the "for end" loop.
I would like to make 1000 names with a value of 1 (value is not important) without having to type them all.
M1=[1]
M2=[1]
M3=[1]
...
M1000=[1]
Can i do this with a for end loop?
for i=1:1000
Mi=[1]
end
This didn't work but best represent the idea.
Any feedback would be appreciated.
Regards, Oosterling
i have a (basic) question about the "for end" loop.
I would like to make 1000 names with a value of 1 (value is not important) without having to type them all.
M1=[1]
M2=[1]
M3=[1]
...
M1000=[1]
Can i do this with a for end loop?
for i=1:1000
Mi=[1]
end
This didn't work but best represent the idea.
Any feedback would be appreciated.
Regards, Oosterling