Matlab- How does you name a new variable based on other variables' values? -


possible duplicates:
how concatenate number variable name in matlab?
matlab: how can use variables value in variables name?

i want name variable using values of other variables given in function. so, if have values x1,x2 can make new variable's name as:

x_(x1's value)_(x2's value) name.

i've checked out eval, num2str, strcat functions, of yet can't make have variable name above can assign value to.

any appreciated.

take @ following faq:

it answers "how" part of question , recommends better approach using arrays.


Comments

Popular posts from this blog

c++ - Compiling static TagLib 1.6.3 libraries for Windows -

PostgreSQL 9.x - pg_read_binary_file & inserting files into bytea -

asp.net - call stack missing info on mono with apache and mod_mono -