MATLAB: Does a figure window open in the foreground in MATLAB 7.0 (R14) when I create the figure using Visual Basic

automationcomddeMATLABr14sp1r14sp2scriptserversupportvb

I use the following Visual Basic commands to generate a MATLAB figure window:
Private Sub test()
Dim MatLab As Object
Dim Result As String
Set MatLab = CreateObject("Matlab.Application")
Result = MatLab.Execute("plot(1:10)")
End Sub
When I execute this function, the resulting window opens in the foreground in MATLAB 7.0 (R14), whereas in MATLAB 6.5 (R13), the figure opens in the background.

Best Answer

This change has been incorporated into the documentation in Release 14 Service Pack 3 (R14SP3). For previous releases, read below for any additional information:
This is an error within the documentation for MATLAB 7.0 (R14) within the External Interfaces section . The documentation should read as follows:
Note that in MATLAB 7.0 (R14), figure windows are be generated in the foreground.