<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/163089</link>
    <title>MATLAB Central Newsreader - reading input from a GUI</title>
    <description>Feed for thread: reading input from a GUI</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2008 by The MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>The MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Mon, 04 Feb 2008 05:20:02 -0500</pubDate>
      <title>reading input from a GUI</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/163089#412750</link>
      <author>Vihang Patil</author>
      <description>"Thiago Jota" &amp;lt;thiago@mathworks.com&amp;gt; wrote in message&lt;br&gt;
&amp;lt;fo5tmh$h2s$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Folks,&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Simple question. I'm avoiding "inputdlg" in order to&lt;br&gt;
&amp;gt; customize my GUI, but I need something similar. How can I&lt;br&gt;
&amp;gt; store what I enter in a text field?&lt;br&gt;
&lt;br&gt;
Hello&lt;br&gt;
There is a simple gui program on the File Central&lt;br&gt;
(&lt;a href="http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=18212&amp;objectType=file)"&gt;http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=18212&amp;objectType=file)&lt;/a&gt;&lt;br&gt;
You can modify it according to your requirement to send&lt;br&gt;
output to the workspace. Instead of a radio button make a&lt;br&gt;
edit box and get the value from the get() .&lt;br&gt;
HTH&lt;br&gt;
Vihang&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Mon, 04 Feb 2008 04:56:44 -0500</pubDate>
      <title>Re: reading input from a GUI</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/163089#412748</link>
      <author>roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)</author>
      <description>In article &amp;lt;fo5tmh$h2s$1@fred.mathworks.com&amp;gt;,&lt;br&gt;
Thiago Jota &amp;lt;thiago@mathworks.com&amp;gt; wrote:&lt;br&gt;
&lt;br&gt;
&amp;gt;Simple question. I'm avoiding "inputdlg" in order to&lt;br&gt;
&amp;gt;customize my GUI, but I need something similar. How can I&lt;br&gt;
&amp;gt;store what I enter in a text field?&lt;br&gt;
&lt;br&gt;
If you mean "store into a variable that which is already&lt;br&gt;
in a text field", then the answer is that you get() the 'String'&lt;br&gt;
property of the text field handle. The result will be a string.&lt;br&gt;
If you need the numeric equivilent of a number represented&lt;br&gt;
by the string, then after validating that the string looks like&lt;br&gt;
a number, you can call str2num or str2double or sscanf .&lt;br&gt;
&lt;br&gt;
If you mean "Put a value into a text field", then the answer&lt;br&gt;
is that you set() the 'String' property of the text field with&lt;br&gt;
a string. If your existing value is a number, then you can&lt;br&gt;
form a string representation of the number by calling num2str&lt;br&gt;
or sprintf.&lt;br&gt;
-- &lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;"Beware of bugs in the above code; I have only proved it correct,&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;not tried it."                                    -- Donald Knuth&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Mon, 04 Feb 2008 02:36:01 -0500</pubDate>
      <title>reading input from a GUI</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/163089#412732</link>
      <author>Thiago Jota</author>
      <description>Folks,&lt;br&gt;
&lt;br&gt;
Simple question. I'm avoiding "inputdlg" in order to&lt;br&gt;
customize my GUI, but I need something similar. How can I&lt;br&gt;
store what I enter in a text field?&lt;br&gt;
</description>
    </item>
  </channel>
</rss>
