<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/236712</link>
    <title>MATLAB Central Newsreader - Matlab.Application stopped working with 2008a</title>
    <description>Feed for thread: Matlab.Application stopped working with 2008a</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Mon, 29 Sep 2008 01:16:03 -0400</pubDate>
      <title>Matlab.Application stopped working with 2008a</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/236712#602693</link>
      <author>Dan Haeg</author>
      <description>I recently uninstalled an older version of Matlab(2007a I think) and now my macros don't work. I have been using 2008a for a while now but I didn't realize that my macros were still using the old version. I use macros in excel and outlook that use matlab as an automation server (Matlab.Application). My problem seems to be that the macro is still trying to use the old version of matlab that is no longer installed. The only ProgID that I can get to work is: Matlab.Desktop.Application which seems to stay running once the macro is done.&lt;br&gt;
&lt;br&gt;
The below code shows the change that has to be made.&lt;br&gt;
I am using &quot;Microsoft Visual Basic 6.5&quot;&lt;br&gt;
&lt;br&gt;
Dim Result As String&lt;br&gt;
Dim Matlab As Object&lt;br&gt;
&lt;br&gt;
'Set Matlab = CreateObject(&quot;Matlab.Application&quot;) used to work but now the below line needs to be used:&lt;br&gt;
Set Matlab = CreateObject(&quot;Matlab.Desktop.Application&quot;)&lt;br&gt;
&lt;br&gt;
Result = Matlab.Execute(&quot;outlook&quot;)&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Does anyone know how I can get Visual Basic to work with my new matlab? Please let me know if I was unclear with anything.&lt;br&gt;
&lt;br&gt;
Thanks,&lt;br&gt;
Dan&lt;br&gt;
&lt;br&gt;
From the help:&lt;br&gt;
&lt;br&gt;
The MATLAB ProgIDs are&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;*Matlab.Application &amp;#8212; Starts a command window Automation server with the version of MATLAB that was most recently used as an Automation server (might not be the latest installed version of MATLAB).&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;*Matlab.Autoserver &amp;#8212; Starts a command window Automation server using the most recent version of MATLAB.&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;*Matlab.Desktop.Application &amp;#8212; Starts the full desktop MATLAB as an Automation server using the most recent version of MATLAB.</description>
    </item>
    <item>
      <pubDate>Tue, 07 Oct 2008 16:50:03 -0400</pubDate>
      <title>Re: Matlab.Application stopped working with 2008a</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/236712#604186</link>
      <author>Dan Haeg</author>
      <description>&quot;Dan Haeg&quot; &amp;lt;haegd@msoe.edu&amp;gt; wrote in message &amp;lt;gbpa8j$sco$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; I recently uninstalled an older version of Matlab(2007a I think) and now my macros don't work. I have been using 2008a for a while now but I didn't realize that my macros were still using the old version. I use macros in excel and outlook that use matlab as an automation server (Matlab.Application). My problem seems to be that the macro is still trying to use the old version of matlab that is no longer installed. The only ProgID that I can get to work is: Matlab.Desktop.Application which seems to stay running once the macro is done.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; The below code shows the change that has to be made.&lt;br&gt;
&amp;gt; I am using &quot;Microsoft Visual Basic 6.5&quot;&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Dim Result As String&lt;br&gt;
&amp;gt; Dim Matlab As Object&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; 'Set Matlab = CreateObject(&quot;Matlab.Application&quot;) used to work but now the below line needs to be used:&lt;br&gt;
&amp;gt; Set Matlab = CreateObject(&quot;Matlab.Desktop.Application&quot;)&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Result = Matlab.Execute(&quot;outlook&quot;)&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Does anyone know how I can get Visual Basic to work with my new matlab? Please let me know if I was unclear with anything.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Thanks,&lt;br&gt;
&amp;gt; Dan&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; From the help:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; The MATLAB ProgIDs are&lt;br&gt;
&amp;gt;     *Matlab.Application &amp;#8212; Starts a command window Automation server with the version of MATLAB that was most recently used as an Automation server (might not be the latest installed version of MATLAB).&lt;br&gt;
&amp;gt;     *Matlab.Autoserver &amp;#8212; Starts a command window Automation server using the most recent version of MATLAB.&lt;br&gt;
&amp;gt;     *Matlab.Desktop.Application &amp;#8212; Starts the full desktop MATLAB as an Automation server using the most recent version of MATLAB.&lt;br&gt;
&lt;br&gt;
Can anyone help me?</description>
    </item>
    <item>
      <pubDate>Fri, 24 Oct 2008 00:10:01 -0400</pubDate>
      <title>Re: Matlab.Application stopped working with 2008a</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/236712#607072</link>
      <author>gokikamukow</author>
      <description>On Oct 8, 3:50=A0am, &quot;Dan Haeg&quot; &amp;lt;ha...@msoe.edu&amp;gt; wrote:&lt;br&gt;
&amp;gt; &quot;Dan Haeg&quot; &amp;lt;ha...@msoe.edu&amp;gt; wrote in message &amp;lt;gbpa8j$sc...@fred.mathworks=&lt;br&gt;
.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; I recently uninstalled an older version of Matlab(2007a I think) and no=&lt;br&gt;
w my macros don't work. I have been using 2008a for a while now but I didn'=&lt;br&gt;
t realize that my macros were still using the old version. I use macros in =&lt;br&gt;
excel and outlook that use matlab as an automation server (Matlab.Applicati=&lt;br&gt;
on). My problem seems to be that the macro is still trying to use the old v=&lt;br&gt;
ersion of matlab that is no longer installed. The only ProgID that I can ge=&lt;br&gt;
t to work is: Matlab.Desktop.Application which seems to stay running once t=&lt;br&gt;
he macro is done.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; The below code shows the change that has to be made.&lt;br&gt;
&amp;gt; &amp;gt; I am using &quot;Microsoft Visual Basic 6.5&quot;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; Dim Result As String&lt;br&gt;
&amp;gt; &amp;gt; Dim Matlab As Object&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; 'Set Matlab =3D CreateObject(&quot;Matlab.Application&quot;) used to work but now=&lt;br&gt;
&amp;nbsp;the below line needs to be used:&lt;br&gt;
&amp;gt; &amp;gt; Set Matlab =3D CreateObject(&quot;Matlab.Desktop.Application&quot;)&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; Result =3D Matlab.Execute(&quot;outlook&quot;)&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; Does anyone know how I can get Visual Basic to work with my new matlab?=&lt;br&gt;
&amp;nbsp;Please let me know if I was unclear with anything.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; Thanks,&lt;br&gt;
&amp;gt; &amp;gt; Dan&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; From the help:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; The MATLAB ProgIDs are&lt;br&gt;
&amp;gt; &amp;gt; =A0 =A0 *Matlab.Application &amp;#8212; Starts a command window Automation =&lt;br&gt;
server with the version of MATLAB that was most recently used as an Automat=&lt;br&gt;
ion server (might not be the latest installed version of MATLAB).&lt;br&gt;
&amp;gt; &amp;gt; =A0 =A0 *Matlab.Autoserver &amp;#8212; Starts a command window Automation s=&lt;br&gt;
erver using the most recent version of MATLAB.&lt;br&gt;
&amp;gt; &amp;gt; =A0 =A0 *Matlab.Desktop.Application &amp;#8212; Starts the full desktop MAT=&lt;br&gt;
LAB as an Automation server using the most recent version of MATLAB.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Can anyone help me?&lt;br&gt;
&lt;br&gt;
I certainly can, please refer to:&lt;br&gt;
&lt;a href=&quot;http://www.mathworks.com/support/solutions/data/1-6FQK77.html&quot;&gt;http://www.mathworks.com/support/solutions/data/1-6FQK77.html&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
You need to run '!matlab \regserver' in a normal matlab application&lt;br&gt;
before COM can create an automationserver</description>
    </item>
    <item>
      <pubDate>Fri, 24 Oct 2008 00:28:02 -0400</pubDate>
      <title>Re: Matlab.Application stopped working with 2008a</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/236712#607073</link>
      <author>Dan Haeg</author>
      <description>&amp;gt; I certainly can, please refer to:&lt;br&gt;
&amp;gt; &lt;a href=&quot;http://www.mathworks.com/support/solutions/data/1-6FQK77.html&quot;&gt;http://www.mathworks.com/support/solutions/data/1-6FQK77.html&lt;/a&gt;&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; You need to run '!matlab \regserver' in a normal matlab application&lt;br&gt;
&amp;gt; before COM can create an automationserver&lt;br&gt;
&lt;br&gt;
Yup that was the problem, thanks for the help.&lt;br&gt;
&lt;br&gt;
&amp;gt;&amp;gt; h = actxserver('Matlab.Application')&lt;br&gt;
??? Error using ==&amp;gt; feval&lt;br&gt;
Server Creation Failed: Class not registered&lt;br&gt;
&lt;br&gt;
Error in ==&amp;gt; actxserver at 87&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;h=feval(['COM.' convertedProgID], 'server', machinename, interface);&lt;br&gt;
&lt;br&gt;
&amp;gt;&amp;gt; !matlab /regserver  &lt;br&gt;
&amp;gt;&amp;gt; h = actxserver('Matlab.Application')&lt;br&gt;
&amp;nbsp;h =&lt;br&gt;
&amp;nbsp;&lt;br&gt;
	COM.Matlab_Application</description>
    </item>
  </channel>
</rss>

