initialize set of sequence variables in a loop

2 次查看(过去 30 天)
hi,
I want to initialize a set of sequence variables in a loop:
for i=1:5
Ti=i;
end
so I can have: T1=1; T2=2; T3=3; ...
is there is a way in matlab to do such a thing?

采纳的回答

Dishant Arora
Dishant Arora 2014-4-1

更多回答(1 个)

Chandrasekhar
Chandrasekhar 2014-4-1
Ti = [1:5];
is this what you are looking for?
  3 个评论

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Loops and Conditional Statements 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by