The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Change the name of the variable
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  

Posts: 6
Registered: 12/4/13
Change the name of the variable
Posted: Dec 4, 2013 3:22 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

I would like to put the name of my variable in the workspace and substitue this in a for cycle:

a=input('a = ','s');
for iFile = 1:10
a=mvdata('getpar', figID, fileID, [a ' (marker)'], 'file')

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.