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
Post a Comment