need help with MATLAB reference libraries.

Hi all.
I am running matlab from excel, which works fine for me, I have windows 7, excel 2010, and matlab R2010a but if I were to run this on a computer that had matlab R2009a instead, I would probably run in to some missing references, but which?
In my project I use the following:
Matlab Automation Server Type Library (File: \MATLAB\R2010a Student\Bin\win32\mlapp.tdl mwsamp ActiveX Control module (File: \MATLAB\R2010a\toolbox\matlab\winfun\win32\mwsamp.ocx) mwsamp 2 ActiveX Control module (Matlab) (File: \MATLAB\R2010a\toolbox\matlab\winfun\win32\mwsamp2.ocx)
is there anywhere I can see what are the default paths and names for the equivalent files in earlier versions? or does someone know or can check their own folders for me?
Any help will be much appriciated

 Respuesta aceptada

Kaustubha Govind
Kaustubha Govind el 7 de Jun. de 2011
The Programming with COM on Windows demo uses this component for an example. As the documentation points out, the file can be located by executing the following at the MATLAB prompt:
fullfile(matlabroot,'toolbox','matlab','winfun',computer('arch'))

5 comentarios

Johan
Johan el 7 de Jun. de 2011
well not sure what I would do with this command, it tells me where two of the three files are located, but suppose I want to have excel sort out the references depending on the version of matlab, which you can do with VBA, but what I need is the path for the files in other versions, not my own, which I can't get by using the command, and I won't have access to other versions for the testing of this, so I need someone to tell me where those files are, or even better perhaps ther GUID which is this hellish long number used by windows and others to identify files with.
So in short, I need to know either the paths, or the GUID, or both, or some kind of matlabcommand that can pass the full path, including filename for each of the three reference items.
Kaustubha Govind
Kaustubha Govind el 8 de Jun. de 2011
Sorry, I'm not familiar with GUID, but if you can locate matlab.exe on a machine, it is usually in $matlabroot\bin. So you can walk up this path to get $matlab\toolbox\matlab\winfun\$arch. Here $arch is either win32 or win64 depending on the system. You will find mwsamp.ocx and mwsamp2.ocx here.
Johan
Johan el 9 de Jun. de 2011
Okay, thanks, but how about mlapp.tdl the automation server, is it usually located at matlabroot\bin\$arch?
Kaustubha Govind
Kaustubha Govind el 9 de Jun. de 2011
Not sure what mlapp.tdl is (did you have a typo in the extension?), but mlapp.tlb is indeed located in $matlabroot\bin\$arch
Johan
Johan el 10 de Jun. de 2011
yeah typo...but thanks.

Iniciar sesión para comentar.

Más respuestas (1)

Johan
Johan el 8 de Jun. de 2011

0 votos

still having fun with this, please, if someone could find out their GUID or path to these files in matlab R2009a if you find it hard to do, just tell me, I have an Excel workbook that can list the path and GUID, just can't do it my self since I don't have matlab R2009a

Productos

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by