<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: MATLAB Basics: Adding a table to a GUI</title>
	<atom:link href="http://blogs.mathworks.com/videos/2008/05/07/matlab-basics-adding-a-table-to-a-gui/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.mathworks.com/videos/2008/05/07/matlab-basics-adding-a-table-to-a-gui/</link>
	<description>Doug Hull is a proud MathWorker who is on a mission to help you with MATLAB.</description>
	<lastBuildDate>Fri, 10 Feb 2012 20:31:50 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: dhull</title>
		<link>http://blogs.mathworks.com/videos/2008/05/07/matlab-basics-adding-a-table-to-a-gui/#comment-2557</link>
		<dc:creator>dhull</dc:creator>
		<pubDate>Wed, 09 Feb 2011 14:50:18 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/videos/2008/05/07/matlab-basics-adding-a-table-to-a-gui/#comment-2557</guid>
		<description>@slumberk

This is better posed at 

http://www.mathworks.com/matlabcentral/answers/

Doug</description>
		<content:encoded><![CDATA[<p>@slumberk</p>
<p>This is better posed at </p>
<p><a href="http://www.mathworks.com/matlabcentral/answers/" rel="nofollow">http://www.mathworks.com/matlabcentral/answers/</a></p>
<p>Doug</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: slumberk</title>
		<link>http://blogs.mathworks.com/videos/2008/05/07/matlab-basics-adding-a-table-to-a-gui/#comment-2555</link>
		<dc:creator>slumberk</dc:creator>
		<pubDate>Wed, 09 Feb 2011 09:38:08 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/videos/2008/05/07/matlab-basics-adding-a-table-to-a-gui/#comment-2555</guid>
		<description>Hi Doug.

I have a popup menu and a table. Popup menu is to select a generator that will be used by the user. For example if the user wants to use 2 generators, then the user may select &#039;2 &#039;on the popup menu. If the user select 2, then the table will be issued a 2 by 3 table. If users select three generators, then the table will be issued a 3 by 3 table. If users select four generators, then the table will be issued a 4 by 3 table and so on. My question is how i want this situation applies? What I mean is how to produce a 2 by 3 table when the user select &#039;2&#039; and 3 by 3 table when the user select &#039;3&#039; and so on?

For your info, My project is about economic dispatch. I have to build GUI using 4 generators and each of the generator have limit. So i have to make 2 uitables. So each generator user selected, then the user have to insert limit( in megawatt) for each generator(which is another table)

This is the example of my table(4 by 3):

      Alpha   Beta  Gamma

C1

C2

C3

C4

The equation for the generator is :

C1 = (Alpha) + (Beta)P + (Gamma)P^2

C2 = (Alpha) + (Beta)P + (Gamma)P^2

C3 = (Alpha) + (Beta)P + (Gamma)P^2

C4 = (Alpha) + (Beta)P + (Gamma)P^2

This is a table for the limit of each generator:

Lower  Upper

C1

C2

C3

C4

The form of this table will be :

Lower &lt; C1 &lt; Upper

Lower &lt; C2 &lt; Upper

Lower &lt; C3 &lt; Upper

Lower &lt; C4 &lt; Upper

So when the user select &#039;2&#039;, then it will popup the 2 by 3 table. How i want to do it? What is the code for it and how i want to call the table data into the pushbuttons? Well i already make 2 uitable figures and i already set the table properties like the row name n column name. But how i want to make it only 2 row only?

Please do help me on this.</description>
		<content:encoded><![CDATA[<p>Hi Doug.</p>
<p>I have a popup menu and a table. Popup menu is to select a generator that will be used by the user. For example if the user wants to use 2 generators, then the user may select &#8217;2 &#8216;on the popup menu. If the user select 2, then the table will be issued a 2 by 3 table. If users select three generators, then the table will be issued a 3 by 3 table. If users select four generators, then the table will be issued a 4 by 3 table and so on. My question is how i want this situation applies? What I mean is how to produce a 2 by 3 table when the user select &#8217;2&#8242; and 3 by 3 table when the user select &#8217;3&#8242; and so on?</p>
<p>For your info, My project is about economic dispatch. I have to build GUI using 4 generators and each of the generator have limit. So i have to make 2 uitables. So each generator user selected, then the user have to insert limit( in megawatt) for each generator(which is another table)</p>
<p>This is the example of my table(4 by 3):</p>
<p>      Alpha   Beta  Gamma</p>
<p>C1</p>
<p>C2</p>
<p>C3</p>
<p>C4</p>
<p>The equation for the generator is :</p>
<p>C1 = (Alpha) + (Beta)P + (Gamma)P^2</p>
<p>C2 = (Alpha) + (Beta)P + (Gamma)P^2</p>
<p>C3 = (Alpha) + (Beta)P + (Gamma)P^2</p>
<p>C4 = (Alpha) + (Beta)P + (Gamma)P^2</p>
<p>This is a table for the limit of each generator:</p>
<p>Lower  Upper</p>
<p>C1</p>
<p>C2</p>
<p>C3</p>
<p>C4</p>
<p>The form of this table will be :</p>
<p>Lower &lt; C1 &lt; Upper</p>
<p>Lower &lt; C2 &lt; Upper</p>
<p>Lower &lt; C3 &lt; Upper</p>
<p>Lower &lt; C4 &lt; Upper</p>
<p>So when the user select &#8217;2&#8242;, then it will popup the 2 by 3 table. How i want to do it? What is the code for it and how i want to call the table data into the pushbuttons? Well i already make 2 uitable figures and i already set the table properties like the row name n column name. But how i want to make it only 2 row only?</p>
<p>Please do help me on this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sunita Singh</title>
		<link>http://blogs.mathworks.com/videos/2008/05/07/matlab-basics-adding-a-table-to-a-gui/#comment-2180</link>
		<dc:creator>Sunita Singh</dc:creator>
		<pubDate>Sat, 17 Jul 2010 08:22:54 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/videos/2008/05/07/matlab-basics-adding-a-table-to-a-gui/#comment-2180</guid>
		<description>Hi Doug,
I have send the code at &#039;hull@mathworks.com&#039;.

Regards,
Sunita</description>
		<content:encoded><![CDATA[<p>Hi Doug,<br />
I have send the code at &#8216;hull@mathworks.com&#8217;.</p>
<p>Regards,<br />
Sunita</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dhull</title>
		<link>http://blogs.mathworks.com/videos/2008/05/07/matlab-basics-adding-a-table-to-a-gui/#comment-2179</link>
		<dc:creator>dhull</dc:creator>
		<pubDate>Fri, 16 Jul 2010 15:45:53 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/videos/2008/05/07/matlab-basics-adding-a-table-to-a-gui/#comment-2179</guid>
		<description>@Sunita

Please send me the reproduction code.

Doug</description>
		<content:encoded><![CDATA[<p>@Sunita</p>
<p>Please send me the reproduction code.</p>
<p>Doug</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sunita</title>
		<link>http://blogs.mathworks.com/videos/2008/05/07/matlab-basics-adding-a-table-to-a-gui/#comment-2178</link>
		<dc:creator>Sunita</dc:creator>
		<pubDate>Wed, 14 Jul 2010 11:52:15 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/videos/2008/05/07/matlab-basics-adding-a-table-to-a-gui/#comment-2178</guid>
		<description>Hi Doug,
I did the following;
I added a row to expand the table as below;
data = get(handles.Data_table,&#039;Data&#039;);
newRow = cat(1,data,cell(1,size(data,2)));
set(handles.Data_table,&#039;Data&#039;,newRow);

this adds a row but the checkbox is not editable. So i added below lines but still i did not work;
Editable =[true,true,true,true,true,true,true];
set(handles.Data_table, &#039;ColumnEditable&#039;,Editable)
this problem is only for new added rows.

Regards,
Sunita</description>
		<content:encoded><![CDATA[<p>Hi Doug,<br />
I did the following;<br />
I added a row to expand the table as below;<br />
data = get(handles.Data_table,&#8217;Data&#8217;);<br />
newRow = cat(1,data,cell(1,size(data,2)));<br />
set(handles.Data_table,&#8217;Data&#8217;,newRow);</p>
<p>this adds a row but the checkbox is not editable. So i added below lines but still i did not work;<br />
Editable =[true,true,true,true,true,true,true];<br />
set(handles.Data_table, &#8216;ColumnEditable&#8217;,Editable)<br />
this problem is only for new added rows.</p>
<p>Regards,<br />
Sunita</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dhull</title>
		<link>http://blogs.mathworks.com/videos/2008/05/07/matlab-basics-adding-a-table-to-a-gui/#comment-2175</link>
		<dc:creator>dhull</dc:creator>
		<pubDate>Mon, 12 Jul 2010 15:41:06 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/videos/2008/05/07/matlab-basics-adding-a-table-to-a-gui/#comment-2175</guid>
		<description>@Sunita,

Have you tried changing &quot;editable&quot; programatically?

Doug</description>
		<content:encoded><![CDATA[<p>@Sunita,</p>
<p>Have you tried changing &#8220;editable&#8221; programatically?</p>
<p>Doug</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sunita</title>
		<link>http://blogs.mathworks.com/videos/2008/05/07/matlab-basics-adding-a-table-to-a-gui/#comment-2174</link>
		<dc:creator>Sunita</dc:creator>
		<pubDate>Mon, 12 Jul 2010 07:09:44 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/videos/2008/05/07/matlab-basics-adding-a-table-to-a-gui/#comment-2174</guid>
		<description>Problem making checkbox and pup-up box editable:
I created uitable in GUI app containing checkbox, pup-box and numeric format and enabled the &#039;Editable&#039; checkobx in Table Property editor. I can edit all formats in the GUI, however if i add an additional row though my program in m-file the numberic cell is still editable but the checkbox and pop-ups are not. How can i make these format editable.

Regards,
Sunita</description>
		<content:encoded><![CDATA[<p>Problem making checkbox and pup-up box editable:<br />
I created uitable in GUI app containing checkbox, pup-box and numeric format and enabled the &#8216;Editable&#8217; checkobx in Table Property editor. I can edit all formats in the GUI, however if i add an additional row though my program in m-file the numberic cell is still editable but the checkbox and pop-ups are not. How can i make these format editable.</p>
<p>Regards,<br />
Sunita</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dhull</title>
		<link>http://blogs.mathworks.com/videos/2008/05/07/matlab-basics-adding-a-table-to-a-gui/#comment-2015</link>
		<dc:creator>dhull</dc:creator>
		<pubDate>Tue, 20 Apr 2010 17:33:31 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/videos/2008/05/07/matlab-basics-adding-a-table-to-a-gui/#comment-2015</guid>
		<description>@Tzu-hao

Are you finding that the property that controls justification is changing?  Is it different for strings vs numerical data?

Doug</description>
		<content:encoded><![CDATA[<p>@Tzu-hao</p>
<p>Are you finding that the property that controls justification is changing?  Is it different for strings vs numerical data?</p>
<p>Doug</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tzu-hao</title>
		<link>http://blogs.mathworks.com/videos/2008/05/07/matlab-basics-adding-a-table-to-a-gui/#comment-2012</link>
		<dc:creator>Tzu-hao</dc:creator>
		<pubDate>Sat, 17 Apr 2010 19:17:55 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/videos/2008/05/07/matlab-basics-adding-a-table-to-a-gui/#comment-2012</guid>
		<description>Dear Doug

    Thank you for this useful demonstration. One issue I ran into while setting up a table is that I found if we pre-assign values into the table, when the values are later edited, it will align to the right. Otherwise it will align to the left. Is there a way to enforce the edited data to always align to the center (since I want to assign values to only a portion of the boxes).

Thanks
Tzu-hao</description>
		<content:encoded><![CDATA[<p>Dear Doug</p>
<p>    Thank you for this useful demonstration. One issue I ran into while setting up a table is that I found if we pre-assign values into the table, when the values are later edited, it will align to the right. Otherwise it will align to the left. Is there a way to enforce the edited data to always align to the center (since I want to assign values to only a portion of the boxes).</p>
<p>Thanks<br />
Tzu-hao</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dhull</title>
		<link>http://blogs.mathworks.com/videos/2008/05/07/matlab-basics-adding-a-table-to-a-gui/#comment-1345</link>
		<dc:creator>dhull</dc:creator>
		<pubDate>Thu, 26 Feb 2009 19:44:29 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/videos/2008/05/07/matlab-basics-adding-a-table-to-a-gui/#comment-1345</guid>
		<description>Yana,

Each column will have one set of choices for the choice menu.  You can not vary it by row.

-Doug</description>
		<content:encoded><![CDATA[<p>Yana,</p>
<p>Each column will have one set of choices for the choice menu.  You can not vary it by row.</p>
<p>-Doug</p>
]]></content:encoded>
	</item>
</channel>
</rss>

