Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

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


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

Topic: input string used as function input
Replies: 4   Last Post: Oct 11, 2013 3:48 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Jason

Posts: 3
Registered: 10/10/13
input string used as function input
Posted: Oct 10, 2013 5:28 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hello,

I would like to take an input string and convert it to a function name.

For example I have the arrays A=[1,2],B=[2,3],C=[4,5]. I then get user input "A,B". I want to take that string and convert it to reference to the arrays A and B to put into a function that requires 2 arrays as input myFun(array1,array2). That way i can also get input "B,C" and pass in B and C into my function.



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

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.