MATLAB engine, xlsread, compatibility issues
Mostrar comentarios más antiguos
I wrote an executable in C++ that uses the MATLAB engine to use the function xlsread to read a .xlsm file. It works perfectly on my computer, I am using Windows 7 and have MATLAB version R2012a however, I am trying to put it on a file server (Windows Server 2008 R2 Service Pack 1) and has MATLAB version R2013a. However, when I put it on the server the executable does not work correctly. Does anyone know why this might be happening?
Any feedback that anyone could provide would be extremely helpful.
Thanks!
8 comentarios
Walter Roberson
el 18 de Ag. de 2013
Does the file server have excel installed ?
Caroline
el 18 de Ag. de 2013
Image Analyst
el 18 de Ag. de 2013
xlsread() won't work at all if Excel is not installed so because it works somewhat, you must have it installed.
Walter Roberson
el 19 de Ag. de 2013
xlsread() would work in 'basic' mode if Excel is not installed.
Image Analyst
el 19 de Ag. de 2013
Editada: Image Analyst
el 19 de Ag. de 2013
I'm not sure what that is. I know that most of my Excel code won't work on my home computer because I have only Excel "starter version" (i.e. free, not the "full" version) and that version won't work with my ActiveX code, which is how I do most of my Excel work because it's faster.
Caroline
el 21 de Ag. de 2013
Walter Roberson
el 21 de Ag. de 2013
and click on the description of the 'basic' option
Flag to request reading in basic mode, which is the default for systems without Excel for Windows. In basic mode, xlsread:
Reads XLS, XLSX, XLSM, XLTX, and XLTM files only.
Does not support an xlRange input when reading XLS files. In this case, use '' in place of xlRange.
Does not support function handle inputs.
Imports all dates as Excel serial date numbers. Excel serial date numbers use a different reference date than MATLAB® date numbers.
Caroline
el 22 de Ag. de 2013
Respuestas (1)
Image Analyst
el 18 de Ag. de 2013
0 votos
Did you also install the R2012a Runtime Component library on the server? It needs to have the same MCR on it that you used to compile your MATLAB module.
3 comentarios
Image Analyst
el 18 de Ag. de 2013
Did you compile a MATLAB module, or are you using MATLAB as an ActiveX server?
Image Analyst
el 18 de Ag. de 2013
I'm not familiar with "the MATLAB engine". If you compiled some MATLAB code on your computer, then to access/run it on another computer, you'll need to install the MCR on that computer. If your code is talking to the full blown MATLAB development environment where MATLAB is acting as an ActiveX server, then you don't need to install the MCR.
Categorías
Más información sobre Introduction to Installation and Licensing en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!