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: how to make "get" only one number not array
Replies: 2   Last Post: Mar 20, 2012 7:39 AM

Advanced Search

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

Posts: 93
Registered: 12/6/04
Re: how to make "get" only one number not array
Posted: Mar 20, 2012 7:39 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

dpb <> wrote in message <jk87j5$ou$>...
> On 3/19/2012 3:10 PM, Dustin Sondenaa wrote:
> > I am using guide to calculate some stuff and I am having an issue. When
> > Diameter is larger than 9 this sets it equal to two numbers (IE 10 would
> > be 1 0) so when I try to input it as a function it's taking it as an
> > array and trying to compute two values. How can I change this code so if
> > there is a 2 or 3 digit number it takes it as one number and not separate?
> >
> > Diameter1 = get(handles.Diameter1,'String')
> > Diameter2 = get(handles.Diameter2,'String')
> > Diameter3 = get(handles.Diameter3,'String')
> > Diameter4 = get(handles.Diameter4,'String')
> > Diameter5 = get(handles.Diameter5,'String')

> doc str2num % maybe?
> --

Wow I can't believe I missed that. Thank you

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.