May 31, 2006 #1 nodalDOF Mechanical Joined Oct 3, 2005 Messages 100 Location US 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.
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.
Jun 1, 2006 #2 SomptingGuy Automotive Joined May 25, 2005 Messages 8,922 Location GB 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. Upvote 0 Downvote
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.