<?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 DDE support	</title>
	<atom:link href="https://undocumentedmatlab.com/articles/matlab-dde-support/feed" rel="self" type="application/rss+xml" />
	<link>https://undocumentedmatlab.com/articles/matlab-dde-support?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=matlab-dde-support</link>
	<description>Professional Matlab consulting, development and training</description>
	<lastBuildDate>Mon, 17 Jun 2013 18:02:54 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.2</generator>
	<item>
		<title>
		By: Why does Windows explorer open multiple instances of Matlab2013a when I am using DDE-commands? &#124; BlogoSfera		</title>
		<link>https://undocumentedmatlab.com/articles/matlab-dde-support#comment-214022</link>

		<dc:creator><![CDATA[Why does Windows explorer open multiple instances of Matlab2013a when I am using DDE-commands? &#124; BlogoSfera]]></dc:creator>
		<pubDate>Mon, 17 Jun 2013 18:02:54 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1756#comment-214022</guid>

					<description><![CDATA[[...] Windows explorer uses DDE to communicate with applications for things like file-opening, and the DDE-commands can be set in the &#8220;folder options&#8221; of Windows explorer. Matlab has an undocumented DDE-interface, which I use for telling Matlab to analyze the selected file. [...]]]></description>
			<content:encoded><![CDATA[<p>[&#8230;] Windows explorer uses DDE to communicate with applications for things like file-opening, and the DDE-commands can be set in the &#8220;folder options&#8221; of Windows explorer. Matlab has an undocumented DDE-interface, which I use for telling Matlab to analyze the selected file. [&#8230;]</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Martin Höcker		</title>
		<link>https://undocumentedmatlab.com/articles/matlab-dde-support#comment-214008</link>

		<dc:creator><![CDATA[Martin Höcker]]></dc:creator>
		<pubDate>Mon, 17 Jun 2013 17:28:52 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1756#comment-214008</guid>

					<description><![CDATA[After upgrading to Matlab2013a, it took me a while to figure out that Mathworks has changed the DDE &quot;Application Name&quot;. It now includes the Matlab Version number, which for Matlab2013a makes it &quot;ShellVerbs.Matlab.8.1.0.&quot;. Just in case other people are wondering about this too, I made a small note on StackExchange.]]></description>
			<content:encoded><![CDATA[<p>After upgrading to Matlab2013a, it took me a while to figure out that Mathworks has changed the DDE &#8220;Application Name&#8221;. It now includes the Matlab Version number, which for Matlab2013a makes it &#8220;ShellVerbs.Matlab.8.1.0.&#8221;. Just in case other people are wondering about this too, I made a small note on StackExchange.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Jonas		</title>
		<link>https://undocumentedmatlab.com/articles/matlab-dde-support#comment-53559</link>

		<dc:creator><![CDATA[Jonas]]></dc:creator>
		<pubDate>Mon, 08 Aug 2011 11:59:49 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1756#comment-53559</guid>

					<description><![CDATA[Cool stuff! About the &quot;thing we cannot do&quot;, i.e. passing several parameter/value pairs: From my tests with MATLAB R2010b it seems that MATLAB uses a greedy string parser here: everything between the first and last quote is treated as one string parameter. So, if your DDE command is THePlotter(&#039;filename.THe&#039;, &#039;somestring&#039;, 2)
then this is interpreted as two parameters: 
1) string: &quot;filename.THe&#039;, &#039;somestring&quot; 
and
2) double: 2

... so in principle not something you couldn&#039;t recover from using eval().]]></description>
			<content:encoded><![CDATA[<p>Cool stuff! About the &#8220;thing we cannot do&#8221;, i.e. passing several parameter/value pairs: From my tests with MATLAB R2010b it seems that MATLAB uses a greedy string parser here: everything between the first and last quote is treated as one string parameter. So, if your DDE command is THePlotter(&#8216;filename.THe&#8217;, &#8216;somestring&#8217;, 2)<br />
then this is interpreted as two parameters:<br />
1) string: &#8220;filename.THe&#8217;, &#8216;somestring&#8221;<br />
and<br />
2) double: 2</p>
<p>&#8230; so in principle not something you couldn&#8217;t recover from using eval().</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Pooh		</title>
		<link>https://undocumentedmatlab.com/articles/matlab-dde-support#comment-14828</link>

		<dc:creator><![CDATA[Pooh]]></dc:creator>
		<pubDate>Mon, 09 Aug 2010 11:00:53 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1756#comment-14828</guid>

					<description><![CDATA[Hi

About compiled app:
After compilation, there&#039;s the *.exe
-&#062; myfun.exe
I&#039;ve associate my extension file with the executable (Step 1).
When I open the file, myfun.exe is launched with one input arg: the path and file. It&#039;s the same as %1 in dde.

So, with a little adaptation, it&#039;s easy to launch the file:
&lt;pre lang=&quot;matlab&quot;&gt;
function  myfun(args)
   if nargin==1 &amp;&amp; exist(args{1},&#039;file&#039;)==2
      launch_file(args{1})
      return;
   end
end
&lt;/pre&gt;
This code is ok for guis.

I also wanted to explore multiselect open, but it seem a little bit more tricky: a multiselect on files then open just launch n-times the single file opening instruction.]]></description>
			<content:encoded><![CDATA[<p>Hi</p>
<p>About compiled app:<br />
After compilation, there&#8217;s the *.exe<br />
-&gt; myfun.exe<br />
I&#8217;ve associate my extension file with the executable (Step 1).<br />
When I open the file, myfun.exe is launched with one input arg: the path and file. It&#8217;s the same as %1 in dde.</p>
<p>So, with a little adaptation, it&#8217;s easy to launch the file:</p>
<pre lang="matlab">
function  myfun(args)
   if nargin==1 &#038;& exist(args{1},'file')==2
      launch_file(args{1})
      return;
   end
end
</pre>
<p>This code is ok for guis.</p>
<p>I also wanted to explore multiselect open, but it seem a little bit more tricky: a multiselect on files then open just launch n-times the single file opening instruction.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Pooh		</title>
		<link>https://undocumentedmatlab.com/articles/matlab-dde-support#comment-14258</link>

		<dc:creator><![CDATA[Pooh]]></dc:creator>
		<pubDate>Tue, 03 Aug 2010 05:36:37 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1756#comment-14258</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/matlab-dde-support#comment-14133&quot;&gt;Yair Altman&lt;/a&gt;.

Thx,

Since last time i&#039;ve made a script that manage all my DDE file association (initializatiojn by writing in the registry (even file icon) and open , plot of file)

I&#039;m certain i&#039;ve read somewhere that compiled scripts and gui cannot have input argument.
So i&#039;m not quite sure how to use DDE.
I&#039;ll try and post after.

I&#039;ll also try mulitselection.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/matlab-dde-support#comment-14133">Yair Altman</a>.</p>
<p>Thx,</p>
<p>Since last time i&#8217;ve made a script that manage all my DDE file association (initializatiojn by writing in the registry (even file icon) and open , plot of file)</p>
<p>I&#8217;m certain i&#8217;ve read somewhere that compiled scripts and gui cannot have input argument.<br />
So i&#8217;m not quite sure how to use DDE.<br />
I&#8217;ll try and post after.</p>
<p>I&#8217;ll also try mulitselection.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/matlab-dde-support#comment-14133</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Sun, 01 Aug 2010 13:28:21 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1756#comment-14133</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/matlab-dde-support#comment-14128&quot;&gt;Pooh&lt;/a&gt;.

@Pooh - I do not know how DDE behaves in a compiled application. I suspect that since MCR uses the same Matlab engine as the interactive application, DDE will also work with MCR, but I do not know. The easiest way to find out is to simply try it out (don&#039;t worry - it will not explode in your face...)]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/matlab-dde-support#comment-14128">Pooh</a>.</p>
<p>@Pooh &#8211; I do not know how DDE behaves in a compiled application. I suspect that since MCR uses the same Matlab engine as the interactive application, DDE will also work with MCR, but I do not know. The easiest way to find out is to simply try it out (don&#8217;t worry &#8211; it will not explode in your face&#8230;)</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Pooh		</title>
		<link>https://undocumentedmatlab.com/articles/matlab-dde-support#comment-14128</link>

		<dc:creator><![CDATA[Pooh]]></dc:creator>
		<pubDate>Sun, 01 Aug 2010 10:47:20 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1756#comment-14128</guid>

					<description><![CDATA[Hi,

Thanks a lot for this feature, It works well and will save me a lot of time (changing working directory, specify the file to open).

I&#039;ve a question about compiled matlab application : is it possible to call DDE with a matlab compiled app (MCR) ? 

I&#039;ve a gui that read and process files and i deploy this gui in a compiled version. The non-compiled version can now open files directly from windows explorer (thx to this post). How can i do it with the compiled version if this is possible ?

Thx a lot]]></description>
			<content:encoded><![CDATA[<p>Hi,</p>
<p>Thanks a lot for this feature, It works well and will save me a lot of time (changing working directory, specify the file to open).</p>
<p>I&#8217;ve a question about compiled matlab application : is it possible to call DDE with a matlab compiled app (MCR) ? </p>
<p>I&#8217;ve a gui that read and process files and i deploy this gui in a compiled version. The non-compiled version can now open files directly from windows explorer (thx to this post). How can i do it with the compiled version if this is possible ?</p>
<p>Thx a lot</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
