<?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: Tab panels &#8211; uitab and relatives	</title>
	<atom:link href="https://undocumentedmatlab.com/articles/tab-panels-uitab-and-relatives/feed" rel="self" type="application/rss+xml" />
	<link>https://undocumentedmatlab.com/articles/tab-panels-uitab-and-relatives?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=tab-panels-uitab-and-relatives</link>
	<description>Professional Matlab consulting, development and training</description>
	<lastBuildDate>Tue, 02 May 2017 09:55:49 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.2</generator>
	<item>
		<title>
		By: ss		</title>
		<link>https://undocumentedmatlab.com/articles/tab-panels-uitab-and-relatives#comment-405795</link>

		<dc:creator><![CDATA[ss]]></dc:creator>
		<pubDate>Tue, 02 May 2017 09:55:49 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1635#comment-405795</guid>

					<description><![CDATA[Hi，year

when I find the uitab callback（ButtonDownFcn），can&#039;t effect in zoom/pan/data cursor mode.How can I resolve the question]]></description>
			<content:encoded><![CDATA[<p>Hi，year</p>
<p>when I find the uitab callback（ButtonDownFcn），can&#8217;t effect in zoom/pan/data cursor mode.How can I resolve the question</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/tab-panels-uitab-and-relatives#comment-375380</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Sat, 30 Apr 2016 17:32:33 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1635#comment-375380</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/tab-panels-uitab-and-relatives#comment-375290&quot;&gt;ruthvik&lt;/a&gt;.

@ruthvik - try to use either the &lt;a href=&quot;http://undocumentedmatlab.com/blog/export_fig&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;&lt;i&gt;&lt;b&gt;export_fig&lt;/b&gt;&lt;/i&gt;&lt;/a&gt; or &lt;a href=&quot;http://undocumentedmatlab.com/blog/screencapture-utility&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;&lt;i&gt;&lt;b&gt;ScreenCapture&lt;/b&gt;&lt;/i&gt;&lt;/a&gt; utilities]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/tab-panels-uitab-and-relatives#comment-375290">ruthvik</a>.</p>
<p>@ruthvik &#8211; try to use either the <a href="http://undocumentedmatlab.com/blog/export_fig" target="_blank" rel="nofollow"><i><b>export_fig</b></i></a> or <a href="http://undocumentedmatlab.com/blog/screencapture-utility" target="_blank" rel="nofollow"><i><b>ScreenCapture</b></i></a> utilities</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: ruthvik		</title>
		<link>https://undocumentedmatlab.com/articles/tab-panels-uitab-and-relatives#comment-375290</link>

		<dc:creator><![CDATA[ruthvik]]></dc:creator>
		<pubDate>Fri, 29 Apr 2016 16:24:44 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1635#comment-375290</guid>

					<description><![CDATA[Hi Yair,

I had used jtables to populate data in uitable and some plots. when i try to export to pdf, plot is getting exported in very bad quality and empty uitable. is it because of using jtable that matlab doesnt now what is there in uitable?

any way to print to pdf the full uitab contents using java in a good resolution?]]></description>
			<content:encoded><![CDATA[<p>Hi Yair,</p>
<p>I had used jtables to populate data in uitable and some plots. when i try to export to pdf, plot is getting exported in very bad quality and empty uitable. is it because of using jtable that matlab doesnt now what is there in uitable?</p>
<p>any way to print to pdf the full uitab contents using java in a good resolution?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Gil		</title>
		<link>https://undocumentedmatlab.com/articles/tab-panels-uitab-and-relatives#comment-345604</link>

		<dc:creator><![CDATA[Gil]]></dc:creator>
		<pubDate>Sat, 14 Feb 2015 22:18:42 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1635#comment-345604</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/tab-panels-uitab-and-relatives#comment-345571&quot;&gt;Gil&lt;/a&gt;.

Hi Yair,

about my previews post, issue solved. Code added below: 

&lt;pre lang=&quot;matlab&quot;&gt;
%% Creating a User Interface with Tab Panels
function [ ] = test_
   f = figure;
   tgroup = uitabgroup(&#039;Parent&#039;, f);
   tab1 = uitab(&#039;Parent&#039;, tgroup, &#039;Title&#039;, &#039;Loan Data&#039;);
   tab2 = uitab(&#039;Parent&#039;, tgroup, &#039;Title&#039;, &#039;Amortization Table&#039;);
   tab3 = uitab(&#039;Parent&#039;, tgroup, &#039;Title&#039;, &#039;Principal/Interest Plot&#039;);
   tgroup.SelectionChangedFcn = @tabChangedCB;
   get(tgroup)
   get(tab3)
end

%% Create a Callback
function tabChangedCB(src, eventdata) 
  % Get the Title of the previous tab
  tabName = eventdata.OldValue.Title
 
  % If &#039;Loan Data&#039; was the previous tab, update the table and plot
%   if strcmp(tabName, &#039;Loan Data&#039;)        
%      % 
%   end
end
&lt;/pre&gt;

Regards,
Gil Polsman]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/tab-panels-uitab-and-relatives#comment-345571">Gil</a>.</p>
<p>Hi Yair,</p>
<p>about my previews post, issue solved. Code added below: </p>
<pre lang="matlab">
%% Creating a User Interface with Tab Panels
function [ ] = test_
   f = figure;
   tgroup = uitabgroup('Parent', f);
   tab1 = uitab('Parent', tgroup, 'Title', 'Loan Data');
   tab2 = uitab('Parent', tgroup, 'Title', 'Amortization Table');
   tab3 = uitab('Parent', tgroup, 'Title', 'Principal/Interest Plot');
   tgroup.SelectionChangedFcn = @tabChangedCB;
   get(tgroup)
   get(tab3)
end

%% Create a Callback
function tabChangedCB(src, eventdata) 
  % Get the Title of the previous tab
  tabName = eventdata.OldValue.Title
 
  % If 'Loan Data' was the previous tab, update the table and plot
%   if strcmp(tabName, 'Loan Data')        
%      % 
%   end
end
</pre>
<p>Regards,<br />
Gil Polsman</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Gil		</title>
		<link>https://undocumentedmatlab.com/articles/tab-panels-uitab-and-relatives#comment-345571</link>

		<dc:creator><![CDATA[Gil]]></dc:creator>
		<pubDate>Fri, 13 Feb 2015 23:53:27 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1635#comment-345571</guid>

					<description><![CDATA[Shalom Yair,
I am trying to use callback for tab press.
basically what i have done is: uncomenting function tabChangedCB(src, eventdata) from &quot;Creating a User Interface with Tab Panels&quot; example.

I am getting the following error: 
&quot;function keyword use is invalid here&quot; 

(Matlab) Explanation 
A nested function cannot be defined inside a control statement (if, while, for, switch or try/catch).
Be aware that in addition to this message, other messages might appear in the file. Such as,  might not be aligned with its matching END and Parse error at END: usage might be invalid MATLAB syntax. When you remove the nested function definition from the control statement, these other messages might disappear.

code added below:

&lt;pre lang=&quot;matlab&quot;&gt; 
%% Creating a User Interface with Tab Panels
% This example shows how to create a user interface with tab panels in MATLAB(R).

%   Copyright 2014 The MathWorks, Inc.

%% Objects Used to Create Tab Panels
% The tabgroup and tab objects are used to build user interfaces with tab
% panels.  A tabgroup object is created using the &#124;uitabgroup&#124; function. A
% tab object is created using the &#124;uitab&#124; function with a tabgroup as its
% parent. The tab objects appear in the order in which they are created.

f = figure;
tgroup = uitabgroup(&#039;Parent&#039;, f);

tab1 = uitab(&#039;Parent&#039;, tgroup, &#039;Title&#039;, &#039;Loan Data&#039;);
tab2 = uitab(&#039;Parent&#039;, tgroup, &#039;Title&#039;, &#039;Amortization Table&#039;);
tab3 = uitab(&#039;Parent&#039;, tgroup, &#039;Title&#039;, &#039;Principal/Interest Plot&#039;);

%% Create a Callback
% The tabgroup object has one callback called &#124;SelectionChangedFcn&#124;. This
% callback function is called when the user changes the currently selected tab.
tgroup.SelectionChangedFcn = &#039;@tabChangedCB&#039;;
  
%%
% For example, if you want the application to recalculate the amortization
% table and update the plot when the user leaves the &quot;Loan Data&quot; tab, then
% set the &#124;SelectionChangeCallback&#124; to a function with this format:
  function tabChangedCB(src, eventdata)
 
  % Get the Title of the previous tab
  tabName = eventdata.OldValue.Title;
 
  % If &#039;Loan Data&#039; was the previous tab, update the table and plot
%   if strcmp(tabName, &#039;Loan Data&#039;)        
%      % 
%   end
  end

%% Get All Tabgroup and Tab Properties
% Graphics objects in MATLAB have many properties. To see all the
% properties of a tabgroup or tab object, use the &#124;get&#124; command.
get(tgroup)
get(tab3)
displayEndOfDemoMessage(mfilename)
&lt;/pre&gt;

results(before uncommenting):

&lt;pre lang=&#039;matlab&#039;&gt;
TabbedUserInterfaceExample
           BeingDeleted: &#039;off&#039;
             BusyAction: &#039;queue&#039;
          ButtonDownFcn: &#039;&#039;
               Children: [3x1 Tab]
              CreateFcn: &#039;&#039;
              DeleteFcn: &#039;&#039;
       HandleVisibility: &#039;on&#039;
          Interruptible: &#039;on&#039;
                 Parent: [1x1 Figure]
               Position: [0 0 1 1]
            SelectedTab: [1x1 Tab]
    SelectionChangedFcn: &#039;@tabChangedCB&#039;
         SizeChangedFcn: &#039;&#039;
            TabLocation: &#039;top&#039;
                    Tag: &#039;&#039;
                   Type: &#039;uitabgroup&#039;
          UIContextMenu: []
                  Units: &#039;normalized&#039;
               UserData: []
                Visible: &#039;on&#039;

     BackgroundColor: [0.9400 0.9400 0.9400]
        BeingDeleted: &#039;off&#039;
          BusyAction: &#039;queue&#039;
       ButtonDownFcn: &#039;&#039;
            Children: []
           CreateFcn: &#039;&#039;
           DeleteFcn: &#039;&#039;
     ForegroundColor: [0 0 0]
    HandleVisibility: &#039;on&#039;
       Interruptible: &#039;on&#039;
              Parent: [1x1 TabGroup]
            Position: [0 0 1 1]
      SizeChangedFcn: &#039;&#039;
                 Tag: &#039;&#039;
               Title: &#039;Principal/Interest Plot&#039;
       TooltipString: &#039;&#039;
                Type: &#039;uitab&#039;
       UIContextMenu: []
               Units: &#039;normalized&#039;
            UserData: []
&lt;/pre&gt;

Regards,
Gil Polsman]]></description>
			<content:encoded><![CDATA[<p>Shalom Yair,<br />
I am trying to use callback for tab press.<br />
basically what i have done is: uncomenting function tabChangedCB(src, eventdata) from &#8220;Creating a User Interface with Tab Panels&#8221; example.</p>
<p>I am getting the following error:<br />
&#8220;function keyword use is invalid here&#8221; </p>
<p>(Matlab) Explanation<br />
A nested function cannot be defined inside a control statement (if, while, for, switch or try/catch).<br />
Be aware that in addition to this message, other messages might appear in the file. Such as,  might not be aligned with its matching END and Parse error at END: usage might be invalid MATLAB syntax. When you remove the nested function definition from the control statement, these other messages might disappear.</p>
<p>code added below:</p>
<pre lang="matlab"> 
%% Creating a User Interface with Tab Panels
% This example shows how to create a user interface with tab panels in MATLAB(R).

%   Copyright 2014 The MathWorks, Inc.

%% Objects Used to Create Tab Panels
% The tabgroup and tab objects are used to build user interfaces with tab
% panels.  A tabgroup object is created using the |uitabgroup| function. A
% tab object is created using the |uitab| function with a tabgroup as its
% parent. The tab objects appear in the order in which they are created.

f = figure;
tgroup = uitabgroup('Parent', f);

tab1 = uitab('Parent', tgroup, 'Title', 'Loan Data');
tab2 = uitab('Parent', tgroup, 'Title', 'Amortization Table');
tab3 = uitab('Parent', tgroup, 'Title', 'Principal/Interest Plot');

%% Create a Callback
% The tabgroup object has one callback called |SelectionChangedFcn|. This
% callback function is called when the user changes the currently selected tab.
tgroup.SelectionChangedFcn = '@tabChangedCB';
  
%%
% For example, if you want the application to recalculate the amortization
% table and update the plot when the user leaves the "Loan Data" tab, then
% set the |SelectionChangeCallback| to a function with this format:
  function tabChangedCB(src, eventdata)
 
  % Get the Title of the previous tab
  tabName = eventdata.OldValue.Title;
 
  % If 'Loan Data' was the previous tab, update the table and plot
%   if strcmp(tabName, 'Loan Data')        
%      % 
%   end
  end

%% Get All Tabgroup and Tab Properties
% Graphics objects in MATLAB have many properties. To see all the
% properties of a tabgroup or tab object, use the |get| command.
get(tgroup)
get(tab3)
displayEndOfDemoMessage(mfilename)
</pre>
<p>results(before uncommenting):</p>
<pre lang='matlab'>
TabbedUserInterfaceExample
           BeingDeleted: 'off'
             BusyAction: 'queue'
          ButtonDownFcn: ''
               Children: [3x1 Tab]
              CreateFcn: ''
              DeleteFcn: ''
       HandleVisibility: 'on'
          Interruptible: 'on'
                 Parent: [1x1 Figure]
               Position: [0 0 1 1]
            SelectedTab: [1x1 Tab]
    SelectionChangedFcn: '@tabChangedCB'
         SizeChangedFcn: ''
            TabLocation: 'top'
                    Tag: ''
                   Type: 'uitabgroup'
          UIContextMenu: []
                  Units: 'normalized'
               UserData: []
                Visible: 'on'

     BackgroundColor: [0.9400 0.9400 0.9400]
        BeingDeleted: 'off'
          BusyAction: 'queue'
       ButtonDownFcn: ''
            Children: []
           CreateFcn: ''
           DeleteFcn: ''
     ForegroundColor: [0 0 0]
    HandleVisibility: 'on'
       Interruptible: 'on'
              Parent: [1x1 TabGroup]
            Position: [0 0 1 1]
      SizeChangedFcn: ''
                 Tag: ''
               Title: 'Principal/Interest Plot'
       TooltipString: ''
                Type: 'uitab'
       UIContextMenu: []
               Units: 'normalized'
            UserData: []
</pre>
<p>Regards,<br />
Gil Polsman</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Customizing axes rulers &#124; Undocumented Matlab		</title>
		<link>https://undocumentedmatlab.com/articles/tab-panels-uitab-and-relatives#comment-333887</link>

		<dc:creator><![CDATA[Customizing axes rulers &#124; Undocumented Matlab]]></dc:creator>
		<pubDate>Sat, 11 Oct 2014 22:23:25 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1635#comment-333887</guid>

					<description><![CDATA[[...] for years, and some of them eventually become documented. For example, uitab/uitabgroup, on which I posted over 4 years ago and also became official in R2014b after numerous years of running as-is in [...]]]></description>
			<content:encoded><![CDATA[<p>[&#8230;] for years, and some of them eventually become documented. For example, uitab/uitabgroup, on which I posted over 4 years ago and also became official in R2014b after numerous years of running as-is in [&#8230;]</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/tab-panels-uitab-and-relatives#comment-330763</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Thu, 04 Sep 2014 13:52:54 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1635#comment-330763</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/tab-panels-uitab-and-relatives#comment-330758&quot;&gt;David M&lt;/a&gt;.

@David - you can take the code from &lt;i&gt;tabdlg.m&lt;/i&gt;, but if I were you I would not spend any time on this: I think it&#039;s better to use the standard &lt;i&gt;&lt;b&gt;uitab&lt;/b&gt;&lt;/i&gt; functionality as-is.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/tab-panels-uitab-and-relatives#comment-330758">David M</a>.</p>
<p>@David &#8211; you can take the code from <i>tabdlg.m</i>, but if I were you I would not spend any time on this: I think it&#8217;s better to use the standard <i><b>uitab</b></i> functionality as-is.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: David M		</title>
		<link>https://undocumentedmatlab.com/articles/tab-panels-uitab-and-relatives#comment-330758</link>

		<dc:creator><![CDATA[David M]]></dc:creator>
		<pubDate>Thu, 04 Sep 2014 13:19:09 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1635#comment-330758</guid>

					<description><![CDATA[Mr. Altman,

I would like to create a seamless transition between the tabpanel generated with uitab and the box surrounding the tab panel contents. Take for example, the tab panels in your IDS example shown in Chapter 10 of your book. Another example would be the picture shown for tabdlg in this article.  

Any hints would be greatly appreciate!

Kind regards

David M]]></description>
			<content:encoded><![CDATA[<p>Mr. Altman,</p>
<p>I would like to create a seamless transition between the tabpanel generated with uitab and the box surrounding the tab panel contents. Take for example, the tab panels in your IDS example shown in Chapter 10 of your book. Another example would be the picture shown for tabdlg in this article.  </p>
<p>Any hints would be greatly appreciate!</p>
<p>Kind regards</p>
<p>David M</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Michele		</title>
		<link>https://undocumentedmatlab.com/articles/tab-panels-uitab-and-relatives#comment-328447</link>

		<dc:creator><![CDATA[Michele]]></dc:creator>
		<pubDate>Thu, 24 Jul 2014 09:41:25 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1635#comment-328447</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/tab-panels-uitab-and-relatives#comment-328327&quot;&gt;Michele&lt;/a&gt;.

Hi,

Put the table inside a uiflowcontainer already inside the tab. The createTable function doesn&#039;t fit in the tab environment alone.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/tab-panels-uitab-and-relatives#comment-328327">Michele</a>.</p>
<p>Hi,</p>
<p>Put the table inside a uiflowcontainer already inside the tab. The createTable function doesn&#8217;t fit in the tab environment alone.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Michele		</title>
		<link>https://undocumentedmatlab.com/articles/tab-panels-uitab-and-relatives#comment-328328</link>

		<dc:creator><![CDATA[Michele]]></dc:creator>
		<pubDate>Tue, 22 Jul 2014 16:43:33 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1635#comment-328328</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/tab-panels-uitab-and-relatives#comment-328324&quot;&gt;Michele&lt;/a&gt;.

sorry Visible, not Visibility... :(]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/tab-panels-uitab-and-relatives#comment-328324">Michele</a>.</p>
<p>sorry Visible, not Visibility&#8230; 🙁</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
