a_ronagh
Junior Member level 3
Hi
I have a problem in assigning a large number of variables with increasing indices.
Here is a simple example which shows exactley what I want:
var1=a; % a,b,... are are numbers or outputs of some functions
var2=b;
var3=c;
.
.
.
var100=z;
How can I do such an assignment in a for loop.I DON'T WANT TO USE ARRAYS.
What is the answer if a,b,c,... are outputs of functions which are named by
indices themselves.For example fun1(x1,x2,...),fun2(x1,x2,...),...
In fact my question is how to creat indices and add them to the name of variables and
functions?
Please help me.I really need it.
Thank you so much for your help.
I have a problem in assigning a large number of variables with increasing indices.
Here is a simple example which shows exactley what I want:
var1=a; % a,b,... are are numbers or outputs of some functions
var2=b;
var3=c;
.
.
.
var100=z;
How can I do such an assignment in a for loop.I DON'T WANT TO USE ARRAYS.
What is the answer if a,b,c,... are outputs of functions which are named by
indices themselves.For example fun1(x1,x2,...),fun2(x1,x2,...),...
In fact my question is how to creat indices and add them to the name of variables and
functions?
Please help me.I really need it.
Thank you so much for your help.