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: set_param variable to integer problem
Replies: 1   Last Post: Mar 5, 2013 1:03 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View  
Phil Goddard

Posts: 358
Registered: 1/27/12
Re: set_param variable to integer problem
Posted: Mar 5, 2013 1:03 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Your terminology isn't correct.

Mask parameters are strings, and that's what the single quotes represent.
Setting and getting using set_param and get_param always uses strings.

You need to convert the string to a number
>> x= str2double(get_param('Driver/APPcont','Value'));

or convert to an integer data type if required.


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.