- #1
sara_87
- 763
- 0
Homework Statement
i want to produce a vector t(i) where t(i)=i and i=1:10
Homework Equations
The Attempt at a Solution
for i=1:10
t(i)=i
end
this gives:
1,2,3,4,5,6,7,8,9,10,10
why is it giving me 11 elements? with two 10's?
i just want:
1,2,3,4,5,6,7,8,9,10