Comments on: MATLAB Basics: Adding a table to a GUI https://blogs.mathworks.com/videos/2008/05/07/matlab-basics-adding-a-table-to-a-gui/?s_tid=feedtopost Stuart uses video to share his experiences solving problems with MATLAB day-to-day, interesting new features, plus tips and tricks he has picked up along the way. Mon, 02 Jan 2017 22:30:15 +0000 hourly 1 https://wordpress.org/?v=6.2.2 By: mua phe lieu dong https://blogs.mathworks.com/videos/2008/05/07/matlab-basics-adding-a-table-to-a-gui/#comment-70240 Mon, 02 Jan 2017 22:30:15 +0000 https://blogs.mathworks.com/videos/2008/05/07/matlab-basics-adding-a-table-to-a-gui/#comment-70240 Wow, that’s what I was seeking for, what a data!
existing here at this web site, thanks admin of this
site.

]]>
By: Doug https://blogs.mathworks.com/videos/2008/05/07/matlab-basics-adding-a-table-to-a-gui/#comment-25887 Wed, 31 Jul 2013 12:59:36 +0000 https://blogs.mathworks.com/videos/2008/05/07/matlab-basics-adding-a-table-to-a-gui/#comment-25887 @David,

You can moddify the value of the ‘data’ in the UITABLE to reflect as many values and columns as you wish.

]]>
By: David https://blogs.mathworks.com/videos/2008/05/07/matlab-basics-adding-a-table-to-a-gui/#comment-25873 Tue, 30 Jul 2013 22:19:47 +0000 https://blogs.mathworks.com/videos/2008/05/07/matlab-basics-adding-a-table-to-a-gui/#comment-25873 Please I would like to know if it was possible to add columns with new results from a loop into a uitable such as is done with plots using the hold on command. Thank you

]]>
By: carl angelo cruz https://blogs.mathworks.com/videos/2008/05/07/matlab-basics-adding-a-table-to-a-gui/#comment-3276 Fri, 05 Oct 2012 08:16:34 +0000 https://blogs.mathworks.com/videos/2008/05/07/matlab-basics-adding-a-table-to-a-gui/#comment-3276 I have same problem with @sunita singh. I have a choicelist in my table. But when I add another row to expand the table, the choicelist still editable but it says “NaN”. How can I change this format? thank you.

]]>
By: dhull https://blogs.mathworks.com/videos/2008/05/07/matlab-basics-adding-a-table-to-a-gui/#comment-2557 Wed, 09 Feb 2011 14:50:18 +0000 https://blogs.mathworks.com/videos/2008/05/07/matlab-basics-adding-a-table-to-a-gui/#comment-2557 @slumberk

This is better posed at

https://www.mathworks.com/matlabcentral/answers/

Doug

]]>
By: slumberk https://blogs.mathworks.com/videos/2008/05/07/matlab-basics-adding-a-table-to-a-gui/#comment-2555 Wed, 09 Feb 2011 09:38:08 +0000 https://blogs.mathworks.com/videos/2008/05/07/matlab-basics-adding-a-table-to-a-gui/#comment-2555 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 ‘2 ‘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 ‘2’ and 3 by 3 table when the user select ‘3’ 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 < C1 < Upper

Lower < C2 < Upper

Lower < C3 < Upper

Lower < C4 < Upper

So when the user select ‘2’, 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.

]]>
By: Sunita Singh https://blogs.mathworks.com/videos/2008/05/07/matlab-basics-adding-a-table-to-a-gui/#comment-2180 Sat, 17 Jul 2010 08:22:54 +0000 https://blogs.mathworks.com/videos/2008/05/07/matlab-basics-adding-a-table-to-a-gui/#comment-2180 Hi Doug,
I have send the code at ‘hull@mathworks.com’.

Regards,
Sunita

]]>
By: dhull https://blogs.mathworks.com/videos/2008/05/07/matlab-basics-adding-a-table-to-a-gui/#comment-2179 Fri, 16 Jul 2010 15:45:53 +0000 https://blogs.mathworks.com/videos/2008/05/07/matlab-basics-adding-a-table-to-a-gui/#comment-2179 @Sunita

Please send me the reproduction code.

Doug

]]>
By: Sunita https://blogs.mathworks.com/videos/2008/05/07/matlab-basics-adding-a-table-to-a-gui/#comment-2178 Wed, 14 Jul 2010 11:52:15 +0000 https://blogs.mathworks.com/videos/2008/05/07/matlab-basics-adding-a-table-to-a-gui/#comment-2178 Hi Doug,
I did the following;
I added a row to expand the table as below;
data = get(handles.Data_table,’Data’);
newRow = cat(1,data,cell(1,size(data,2)));
set(handles.Data_table,’Data’,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, ‘ColumnEditable’,Editable)
this problem is only for new added rows.

Regards,
Sunita

]]>
By: dhull https://blogs.mathworks.com/videos/2008/05/07/matlab-basics-adding-a-table-to-a-gui/#comment-2175 Mon, 12 Jul 2010 15:41:06 +0000 https://blogs.mathworks.com/videos/2008/05/07/matlab-basics-adding-a-table-to-a-gui/#comment-2175 @Sunita,

Have you tried changing “editable” programatically?

Doug

]]>