Using Substitution when Naming a Vector
Using Substitution when Naming a Vector
(OP)
I have a vector:
c = [20 25 27]'
and want to name another vector by appending the name with an element from the vector c. For instance, I want to name a vector:
omega25 =
the name consists of the base 'omega' and the second element of vector c, c(2). How can one do this substitution? I've been trying to use the genvarname function to no avail so far.
Thank you,
-Brian
c = [20 25 27]'
and want to name another vector by appending the name with an element from the vector c. For instance, I want to name a vector:
omega25 =
the name consists of the base 'omega' and the second element of vector c, c(2). How can one do this substitution? I've been trying to use the genvarname function to no avail so far.
Thank you,
-Brian
RE: Using Substitution when Naming a Vector
or if you are desperate eval
Cheers
Greg Locock
New here? Try reading these, they might help FAQ731-376: Eng-Tips.com Forum Policies http://eng-tips.com/market.cfm?