<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: Advanced MATLAB: Compiling a GUI</title>
	<link>http://blogs.mathworks.com/pick/2007/12/12/advanced-matlab-compiling-a-gui/</link>
	<description>&#60;a href="http://www.mathworks.com/matlabcentral/fileexchange/loadAuthor.do?objectId=969735&#38;objectType=author"&#62;Bob&#60;/a&#62;, &#60;a href="http://www.mathworks.com/matlabcentral/fileexchange/loadAuthor.do?objectId=1093599&#38;objectType=author"&#62;Brett&#60;/a&#62; &#38; &#60;a href="http://www.mathworks.com/matlabcentral/fileexchange/loadAuthor.do?objectId=1094142&#38;objectType=author"&#62;Jiro&#60;/a&#62; share favorite user-contributed submissions from the File Exchange.</description>
	<pubDate>Mon, 23 Nov 2009 01:39:07 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.1</generator>
		<item>
		<title>By: OneM</title>
		<link>http://blogs.mathworks.com/pick/2007/12/12/advanced-matlab-compiling-a-gui/#comment-13212</link>
		<dc:creator>OneM</dc:creator>
		<pubDate>Fri, 31 Jul 2009 09:19:09 +0000</pubDate>
		<guid>http://blogs.mathworks.com/pick/2007/12/12/advanced-matlab-compiling-a-gui/#comment-13212</guid>
		<description>Hi Doug,
***********************
Doug replied on June 25th, 2009 at 14:27 UTC : 
Richard,

Use the compiler options file, it is found at the bottom of the dialog that you get when clicking on the “Open project settings window” button on the Deploy Tool.
***********************
I follow this exactly but it does not work. The DOS window still appears. Please advise. Thanks.</description>
		<content:encoded><![CDATA[<p>Hi Doug,<br />
***********************<br />
Doug replied on June 25th, 2009 at 14:27 UTC :<br />
Richard,</p>
<p>Use the compiler options file, it is found at the bottom of the dialog that you get when clicking on the “Open project settings window” button on the Deploy Tool.<br />
***********************<br />
I follow this exactly but it does not work. The DOS window still appears. Please advise. Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Valerio</title>
		<link>http://blogs.mathworks.com/pick/2007/12/12/advanced-matlab-compiling-a-gui/#comment-13198</link>
		<dc:creator>Valerio</dc:creator>
		<pubDate>Sat, 11 Jul 2009 11:34:09 +0000</pubDate>
		<guid>http://blogs.mathworks.com/pick/2007/12/12/advanced-matlab-compiling-a-gui/#comment-13198</guid>
		<description>I try to compile this code:

&lt;pre&gt;

function seat
clc 
clear all
close all

stringa= 'dati_Valerio/prova_6/';

ac2 =fopen(strcat(num2str(stringa),'acc2.txt'),'r');
a2 = fscanf(ac2, '%*s %f %*s %f %*s %f %*s %f',[4 inf]);
a2=a2';
fclose(ac2);

ac3 =fopen(strcat(num2str(stringa),'acc3.txt'),'r');
a3 = fscanf(ac3, '%*s %f %*s %f %*s %f %*s %f',[4 inf]);
a3=a3';
fclose(ac3);

for i=1:length(a2)
time(i)=a2(i,1);
acc2(i)=a2(i,4);
acc3(i)=a3(i,4);
end

Nfig = 1;

% INIZIO WAVELET ANALYSIS dei segnali
%
offsetacc2 = -10;
signal = offsetacc2 + acc2;
signalname = 'Accelerazione Testa';
lev   = 8;
nbcol = 128;
topa = 128;  %topa &#60;= nbcol
colorn = 256;
wname = 'db8';
Tsample = time(4)-time(3);

waveletanalysis_dan1(signal,lev,nbcol,topa,colorn,wname,Tsample,Nfig,signalname)

offsetacc3 = -10;
signal = offsetacc3 + acc3;
signalname = 'Accelerazione Sedile';
Nfig = Nfig + 1;

waveletanalysis_dan1(signal,lev,nbcol,topa,colorn,wname,Tsample,Nfig,signalname)&lt;/pre&gt;

With the waveletanalysis_dan1.m is:

&lt;pre&gt;function waveletanalysis_dan1(signal,lev,nbcol,topa,colorn,wname,Tsample,Nfig,signalname)

%Perform the discrete wavelet transform (DWT) at level 5 using db1.
[c,l] = wavedec(signal,lev,wname);
%Expand discrete wavelet coefficients for plot.
len = length(signal);
cfd = zeros(lev,len);
for k = 1:lev
    d = detcoef(c,l,k);
    d = d(:)';
    d = d(ones(1,2^k),:);
    cfd(k,:) = wkeep1(d(:)',len);
end
cfd =  cfd(:);
I = find(abs(cfd)&#60;sqrt(eps));
cfd(I) = zeros(size(I));
cfd    = reshape(cfd,lev,len);
cfd = wcodemat(cfd,nbcol,'row');

figure(Nfig)


%Perform the continuous wavelet transform (CWT) and visualize results
set(subplot(3,1,1),'Xtick',[]);
plot(signal,'r');
title(strcat('{\bf',signalname,'}'));
set(gca,'Xlim',[1 length(signal)]);
subplot(3,1,2);
colormap(cool(colorn));
image(cfd);
tics = 1:lev;
labs = int2str(tics');
set(gca,...
    'YTicklabelMode','manual','Ydir','normal', ...
    'Box','On','Ytick',tics,'YTickLabel',labs ...
    );
title('Discrete Transform, absolute coefficients.');
ylabel('Level');
set(subplot(3,1,2),'Xtick',[]);
subplot(3,1,3);
scales = (1:topa);
cwt(signal,scales,wname,'plot');
colormap(cool(colorn));
tt = get(gca,'Yticklabel');
[r,c] = size(tt);
yl = char(topa*ones(r,c));
for k = 1:1:r , yl(k,:) = tt(k,:); end
set(gca,'Yticklabel',yl);&lt;/pre&gt;

The problem is in wavelet analysis. Thanks</description>
		<content:encoded><![CDATA[<p>I try to compile this code:</p>
<pre>

function seat
clc
clear all
close all

stringa= 'dati_Valerio/prova_6/';

ac2 =fopen(strcat(num2str(stringa),'acc2.txt'),'r');
a2 = fscanf(ac2, '%*s %f %*s %f %*s %f %*s %f',[4 inf]);
a2=a2';
fclose(ac2);

ac3 =fopen(strcat(num2str(stringa),'acc3.txt'),'r');
a3 = fscanf(ac3, '%*s %f %*s %f %*s %f %*s %f',[4 inf]);
a3=a3';
fclose(ac3);

for i=1:length(a2)
time(i)=a2(i,1);
acc2(i)=a2(i,4);
acc3(i)=a3(i,4);
end

Nfig = 1;

% INIZIO WAVELET ANALYSIS dei segnali
%
offsetacc2 = -10;
signal = offsetacc2 + acc2;
signalname = 'Accelerazione Testa';
lev   = 8;
nbcol = 128;
topa = 128;  %topa &lt;= nbcol
colorn = 256;
wname = 'db8';
Tsample = time(4)-time(3);

waveletanalysis_dan1(signal,lev,nbcol,topa,colorn,wname,Tsample,Nfig,signalname)

offsetacc3 = -10;
signal = offsetacc3 + acc3;
signalname = 'Accelerazione Sedile';
Nfig = Nfig + 1;

waveletanalysis_dan1(signal,lev,nbcol,topa,colorn,wname,Tsample,Nfig,signalname)</pre>
<p>With the waveletanalysis_dan1.m is:</p>
<pre>function waveletanalysis_dan1(signal,lev,nbcol,topa,colorn,wname,Tsample,Nfig,signalname)

%Perform the discrete wavelet transform (DWT) at level 5 using db1.
[c,l] = wavedec(signal,lev,wname);
%Expand discrete wavelet coefficients for plot.
len = length(signal);
cfd = zeros(lev,len);
for k = 1:lev
    d = detcoef(c,l,k);
    d = d(:)';
    d = d(ones(1,2^k),:);
    cfd(k,:) = wkeep1(d(:)',len);
end
cfd =  cfd(:);
I = find(abs(cfd)&lt;sqrt(eps));
cfd(I) = zeros(size(I));
cfd    = reshape(cfd,lev,len);
cfd = wcodemat(cfd,nbcol,'row');

figure(Nfig)

%Perform the continuous wavelet transform (CWT) and visualize results
set(subplot(3,1,1),'Xtick',[]);
plot(signal,'r');
title(strcat('{\bf',signalname,'}'));
set(gca,'Xlim',[1 length(signal)]);
subplot(3,1,2);
colormap(cool(colorn));
image(cfd);
tics = 1:lev;
labs = int2str(tics');
set(gca,...
    'YTicklabelMode','manual','Ydir','normal', ...
    'Box','On','Ytick',tics,'YTickLabel',labs ...
    );
title('Discrete Transform, absolute coefficients.');
ylabel('Level');
set(subplot(3,1,2),'Xtick',[]);
subplot(3,1,3);
scales = (1:topa);
cwt(signal,scales,wname,'plot');
colormap(cool(colorn));
tt = get(gca,'Yticklabel');
[r,c] = size(tt);
yl = char(topa*ones(r,c));
for k = 1:1:r , yl(k,:) = tt(k,:); end
set(gca,'Yticklabel',yl);</pre>
<p>The problem is in wavelet analysis. Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard</title>
		<link>http://blogs.mathworks.com/pick/2007/12/12/advanced-matlab-compiling-a-gui/#comment-13188</link>
		<dc:creator>Richard</dc:creator>
		<pubDate>Fri, 26 Jun 2009 11:45:09 +0000</pubDate>
		<guid>http://blogs.mathworks.com/pick/2007/12/12/advanced-matlab-compiling-a-gui/#comment-13188</guid>
		<description>Hello Doug, yet another question. I followed this tutorial:

http://blinkdagger.com/matlab/matlab-gui-tutorial-close-gui-confirmation

and it works perfectly in Matlab. However after compiling the gui to a executable, I do get the the question dialog but clicking 'Yes' doesn't close the exe.

Any help is appreciated. Regards, Richard</description>
		<content:encoded><![CDATA[<p>Hello Doug, yet another question. I followed this tutorial:</p>
<p><a href="http://blinkdagger.com/matlab/matlab-gui-tutorial-close-gui-confirmation" rel="nofollow">http://blinkdagger.com/matlab/matlab-gui-tutorial-close-gui-confirmation</a></p>
<p>and it works perfectly in Matlab. However after compiling the gui to a executable, I do get the the question dialog but clicking &#8216;Yes&#8217; doesn&#8217;t close the exe.</p>
<p>Any help is appreciated. Regards, Richard</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Doug</title>
		<link>http://blogs.mathworks.com/pick/2007/12/12/advanced-matlab-compiling-a-gui/#comment-13187</link>
		<dc:creator>Doug</dc:creator>
		<pubDate>Thu, 25 Jun 2009 14:27:20 +0000</pubDate>
		<guid>http://blogs.mathworks.com/pick/2007/12/12/advanced-matlab-compiling-a-gui/#comment-13187</guid>
		<description>Richard,

Use the compiler options file, it is found at the bottom of the dialog that you get when clicking on the "Open project settings window" button on the Deploy Tool.

Doug</description>
		<content:encoded><![CDATA[<p>Richard,</p>
<p>Use the compiler options file, it is found at the bottom of the dialog that you get when clicking on the &#8220;Open project settings window&#8221; button on the Deploy Tool.</p>
<p>Doug</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard</title>
		<link>http://blogs.mathworks.com/pick/2007/12/12/advanced-matlab-compiling-a-gui/#comment-13186</link>
		<dc:creator>Richard</dc:creator>
		<pubDate>Thu, 25 Jun 2009 13:39:32 +0000</pubDate>
		<guid>http://blogs.mathworks.com/pick/2007/12/12/advanced-matlab-compiling-a-gui/#comment-13186</guid>
		<description>To whom it may concern, a solution to the dos screen annoyance is found by user 'vihang' in this discussion:

http://groups.google.com/group/comp.soft-sys.matlab/browse_thread/thread/0527d566c3b72873

In my case, simply adding "set LINKFLAGS=%LINKFLAGS% -subsystem windows" to compopts.bat does the trick!

Richard</description>
		<content:encoded><![CDATA[<p>To whom it may concern, a solution to the dos screen annoyance is found by user &#8216;vihang&#8217; in this discussion:</p>
<p><a href="http://groups.google.com/group/comp.soft-sys.matlab/browse_thread/thread/0527d566c3b72873" rel="nofollow">http://groups.google.com/group/comp.soft-sys.matlab/browse_thread/thread/0527d566c3b72873</a></p>
<p>In my case, simply adding &#8220;set LINKFLAGS=%LINKFLAGS% -subsystem windows&#8221; to compopts.bat does the trick!</p>
<p>Richard</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard</title>
		<link>http://blogs.mathworks.com/pick/2007/12/12/advanced-matlab-compiling-a-gui/#comment-13185</link>
		<dc:creator>Richard</dc:creator>
		<pubDate>Thu, 25 Jun 2009 09:13:58 +0000</pubDate>
		<guid>http://blogs.mathworks.com/pick/2007/12/12/advanced-matlab-compiling-a-gui/#comment-13185</guid>
		<description>Thank you for your reply. I understand that I can specify flags using the mcc command, but is this also possible through the deploytool?

Richard</description>
		<content:encoded><![CDATA[<p>Thank you for your reply. I understand that I can specify flags using the mcc command, but is this also possible through the deploytool?</p>
<p>Richard</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Doug</title>
		<link>http://blogs.mathworks.com/pick/2007/12/12/advanced-matlab-compiling-a-gui/#comment-13183</link>
		<dc:creator>Doug</dc:creator>
		<pubDate>Tue, 23 Jun 2009 14:43:01 +0000</pubDate>
		<guid>http://blogs.mathworks.com/pick/2007/12/12/advanced-matlab-compiling-a-gui/#comment-13183</guid>
		<description>Richard:

Find it here:

http://www.mathworks.com/access/helpdesk/help/toolbox/compiler/mcc.html

Doug</description>
		<content:encoded><![CDATA[<p>Richard:</p>
<p>Find it here:</p>
<p><a href="http://www.mathworks.com/access/helpdesk/help/toolbox/compiler/mcc.html" rel="nofollow">http://www.mathworks.com/access/helpdesk/help/toolbox/compiler/mcc.html</a></p>
<p>Doug</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard</title>
		<link>http://blogs.mathworks.com/pick/2007/12/12/advanced-matlab-compiling-a-gui/#comment-13182</link>
		<dc:creator>Richard</dc:creator>
		<pubDate>Tue, 23 Jun 2009 08:33:32 +0000</pubDate>
		<guid>http://blogs.mathworks.com/pick/2007/12/12/advanced-matlab-compiling-a-gui/#comment-13182</guid>
		<description>Hello Doug,

Can you explain point 56. (about the -e flag) because I can't seem to find it.

Regards, Richard</description>
		<content:encoded><![CDATA[<p>Hello Doug,</p>
<p>Can you explain point 56. (about the -e flag) because I can&#8217;t seem to find it.</p>
<p>Regards, Richard</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lori</title>
		<link>http://blogs.mathworks.com/pick/2007/12/12/advanced-matlab-compiling-a-gui/#comment-13102</link>
		<dc:creator>Lori</dc:creator>
		<pubDate>Tue, 24 Mar 2009 13:54:29 +0000</pubDate>
		<guid>http://blogs.mathworks.com/pick/2007/12/12/advanced-matlab-compiling-a-gui/#comment-13102</guid>
		<description>I'm trying to compile using DEPLOYTOOL in 2007a (I *do* have access to more recent versions of Matlab, but not immediately at hand) a more substantial GUI with menus that invoke Callback functions.  Unfortunately, the variables being passed into these functions no longer exist when the Callbacks are invoked.. I get errors indicating that the variable is not found.  Are there any resources you can point me towards to help me make this work?

Thanks!</description>
		<content:encoded><![CDATA[<p>I&#8217;m trying to compile using DEPLOYTOOL in 2007a (I *do* have access to more recent versions of Matlab, but not immediately at hand) a more substantial GUI with menus that invoke Callback functions.  Unfortunately, the variables being passed into these functions no longer exist when the Callbacks are invoked.. I get errors indicating that the variable is not found.  Are there any resources you can point me towards to help me make this work?</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Doug</title>
		<link>http://blogs.mathworks.com/pick/2007/12/12/advanced-matlab-compiling-a-gui/#comment-13090</link>
		<dc:creator>Doug</dc:creator>
		<pubDate>Mon, 16 Mar 2009 13:31:28 +0000</pubDate>
		<guid>http://blogs.mathworks.com/pick/2007/12/12/advanced-matlab-compiling-a-gui/#comment-13090</guid>
		<description>Lindo,

Sorry, this is not supported.

Doug</description>
		<content:encoded><![CDATA[<p>Lindo,</p>
<p>Sorry, this is not supported.</p>
<p>Doug</p>
]]></content:encoded>
	</item>
</channel>
</rss>
