Different variable names in different runs of a script

2 次查看(过去 30 天)
Is it possible to get different variable names in different runs of a script.
Eg.
lets say we have following script
for i=1:10
j[i]=1
end
i want that when i run this script different times i get different variable names like i_0, j_0 for first run, i_1,j_1 for second run and so on

回答(1 个)

Walter Roberson
Walter Roberson 2013-3-17

类别

Help CenterFile Exchange 中查找有关 Modeling 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by