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: 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 ]
Julian

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 <none@non.net> wrote in message <jk87j5$ou$2@speranza.aioe.org>...
> 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]

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