Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Question on Variable name creation ...

Status
Not open for further replies.

nodalDOF

Mechanical
Oct 3, 2005
100
Is it possible to create the variable names by concatenating two strings ? something like this...

x='value'
['abc' x]= 10;


so that abcvalue=10



any ideas of creating variable names like this.
 
Replies continue below

Recommended for you

You can do this using eval. However, if you trawl the archives of CSSM, you'll find many posters suggesting that your problem is better solved using cell arrays.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor