Why do I receive a data conversion error after running a MATLAB Excel Builder generated add-in in Excel?
2 次查看(过去 30 天)
显示 更早的评论
Why do I receive a data conversion error after running a MATLAB Excel Builder generated add-in in Excel?
I was able to build my MATLAB Excel Builder component, but after adding it to Excel, I received the following error message:
Error in xlmagic.xlmagic.1_0: Error getting data conversion flags.
采纳的回答
MathWorks Support Team
2013-7-25
This error is a result of mwcomutil.dll not being registered. To register the dll:
1) Open a DOS window
2) If you are running against MATLAB change the directory to $MATLABROOT\bin\win32 (where $MATLABROOT represents the MATLAB installation directory the your system) or if you are running against the MCR change the directory to $MCRROOT\runtime\win32 (where $MCRROOT represents the MCR installation directory the your system)
3)Execute the command
mwregsvr mwcomutil.dll
If the above steps do not work, it can possibly be a registry issue. Please follow the troubleshooting steps below to resolve the issue in that case:
1) Download C-Cleaner and clean the system registry.
2) Delete the MATLAB Preference folder and build the Excel Add-in again. To find the location of the preference directory, execute the following command in the MATLAB command prompt
>>prefdir
3) Delete the startup.m file and build the Add-in again.
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Export to MATLAB 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!