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: Capture function input and determine input variable type
Replies: 3   Last Post: Aug 28, 2013 10:09 AM

Advanced Search

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

Posts: 2
Registered: 8/27/13
Capture function input and determine input variable type
Posted: Aug 27, 2013 9:29 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

I want my function myFun (num, string) to allow user to input either argument num or string (or both). After using nargin to determine the number of input, how do I capture the input and determine whether it's a number or a string?



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.