This bug has been fixed in Release 14 Service Pack 2 (R14SP2). For previous releases, read below for any possible workarounds:
There is a bug in MATLAB Compiler 4.0 (R14) in the way that it locates the activex files corresponding to a GUI. To work around this issue, use the -a flag to append the mygui_activex file to the CTF-archive when compiling:
mcc –m mygui.m -a mygui_activex
Best Answer