Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using Substitution when Naming a Vector

Status
Not open for further replies.

Stringmaker

Mechanical
Joined
Mar 18, 2005
Messages
513
Location
US
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top