MATLAB: Does the ActiveX “Mwsamp” example not refresh properly within MATLAB 7.0 (R14)

activexcontrolMATLABmwsampr14refresh

I am following the documentation example of adding an ActiveX control to a GUI in MATLAB 7.0 (R14). This example is accessible by executing:
web([docroot '/techdoc/creating_guis/ch_program20.html#27773'])
However, the ActiveX "Mwsamp" example does not refresh properly.

Best Answer

This bug has been fixed in MATLAB 7.0.1 (R14SP1). For previous releases, please read below for any possible workarounds:
This has been verified as a bug in MATLAB 7.0 (R14) in the way that ActiveX are refreshed.
To work around this issue, try replacing the following
refresh(handles.figure1);
with
handles.activex1.Redraw