<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/131965</link>
    <title>MATLAB Central Newsreader - Help populating a listbox</title>
    <description>Feed for thread: Help populating a listbox</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by 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>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Thu, 07 Sep 2006 12:00:49 -0400</pubDate>
      <title>Help populating a listbox</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/131965#332393</link>
      <author>Darran Specter</author>
      <description>I would like a piece of code that can take a number of strings, which&lt;br&gt;
will not be determined until runtime, and use them to populate a list&lt;br&gt;
box:&lt;br&gt;
eg&lt;br&gt;
String1&lt;br&gt;
String2&lt;br&gt;
.&lt;br&gt;
.&lt;br&gt;
.&lt;br&gt;
StringN&lt;br&gt;
&lt;br&gt;
I don't know N unitl runtime.&lt;br&gt;
&lt;br&gt;
Thanks allot</description>
    </item>
    <item>
      <pubDate>Fri, 08 Sep 2006 09:40:44 -0400</pubDate>
      <title>Re: Help populating a listbox</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/131965#332621</link>
      <author>Dan K</author>
      <description>Actually it is deceptively simple:&lt;br&gt;
&lt;br&gt;
Put your strings into a cell array strings and set:&lt;br&gt;
&lt;br&gt;
set(listboxHandle,'String',strings);&lt;br&gt;
That's it.&lt;br&gt;
&lt;br&gt;
HTH&lt;br&gt;
&lt;br&gt;
Darran Specter wrote:&lt;br&gt;
&amp;gt; I would like a piece of code that can take a number of strings, which&lt;br&gt;
&amp;gt; will not be determined until runtime, and use them to populate a list&lt;br&gt;
&amp;gt; box:&lt;br&gt;
&amp;gt; eg&lt;br&gt;
&amp;gt; String1&lt;br&gt;
&amp;gt; String2&lt;br&gt;
&amp;gt; .&lt;br&gt;
&amp;gt; .&lt;br&gt;
&amp;gt; .&lt;br&gt;
&amp;gt; StringN&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I don't know N unitl runtime.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Thanks allot</description>
    </item>
  </channel>
</rss>

