- #1
ephedyn
- 170
- 1
OK, I've a much more complicated code, but I've simplified the below to portend to my question more specifically.
Basically, I want to store some arrays as variables in the following manner:
q1 = 2
q2 = 3
q3 = 4
...
...
q9 = 10
q10 = 11
Does anyone know what I should use instead of the parentheses "[ ]" which would have worked in C++?
Thanks in advance!
Basically, I want to store some arrays as variables in the following manner:
q1 = 2
q2 = 3
q3 = 4
...
...
q9 = 10
q10 = 11
Does anyone know what I should use instead of the parentheses "[ ]" which would have worked in C++?
%code%
for r = 0:10;
q[r]=1+r;
end
Thanks in advance!