I receive an error when I try to start an ActiveX control or server from MATLAB. The error occurs because the control or server is not registered in the Windows registry.
For example, if the mwsamp.ocx file is not registered, I get the following error:
mwsamp
Warning: Control creation failed: (MWSAMP.MwsampCtrl.1) ??? Error using ==> activex/activex Invalid ActiveX object Error in ==> D:\Applications\matlab\toolbox\matlab\winfun\actxcontrol.m On line 30 ==> Error in ==> D:\Applications\matlab\toolbox\matlab\winfun\mwsamp.m On line 20 ==> h = actxcontrol('MWSAMP.MwsampCtrl.1', [0 0 200 200], f, 'sampev')
Best Answer