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?

답변 (1개)

Titus Edelhofer
Titus Edelhofer 2014년 6월 3일

0 개 추천

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

Khalid Khan
Khalid Khan 2014년 6월 10일
Titus, Thanks for replying. It does not work for MATLAB R14. Here is the message I get:
>> x = actxserver('Excel.Application');
??? Server Creation Failed: Server execution failed
Thanks Khalid
Mira
Mira 2015년 4월 17일
Khalid, Do you remember how this issue got resolved? I'm getting the same error. Thanks.
Guillaume
Guillaume 2015년 4월 17일
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.

댓글을 달려면 로그인하십시오.

카테고리

제품

질문:

2014년 6월 3일

댓글:

2015년 4월 17일

Community Treasure Hunt

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

Start Hunting!

Translated by