MATLAB7 interface with excel

8 visualizaciones (últimos 30 días)
Khalid Khan
Khalid Khan el 3 de Jun. de 2014
Comentada: Guillaume el 17 de Abr. de 2015
I have MATLAB 7 (R14) and Excel 2010 on my machine. Is there a way to know which version of Excel is installed on a particular machine from within MATLAB R14?

Respuestas (1)

Titus Edelhofer
Titus Edelhofer el 3 de Jun. de 2014
Hi,
you can use the ActiveX-Interface to query Excel:
x = actxserver('Excel.Application');
v = get(x, 'version')
delete(x);
Result:
v =
15.0
which translates to Excel 2013 (see e.g. http://en.wikipedia.org/wiki/Microsoft_Excel for the version numbers).
Titus
  3 comentarios
Mira
Mira el 17 de Abr. de 2015
Khalid, Do you remember how this issue got resolved? I'm getting the same error. Thanks.
Guillaume
Guillaume el 17 de Abr. de 2015
Khalid, for better visibility start your own question even if it's related to this one.
In any case, if actxserver fails, the issue is with Excel, not matlab.

Iniciar sesión para comentar.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by