usefulcodes.blogspot.com
AboutME
ajabgajabBLOG
nabinkm.com
NewPost
Thursday, May 5, 2011
Accessing variables as string (matlab)
Easy access to the variables via evaluation command
variables = {'a', 'b','c'}
a = 22;
% operations
eval(variables{1})+2
% works
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment