I use the following Visual Basic commands to generate a MATLAB figure window:
Private Sub test()Dim MatLab As ObjectDim Result As StringSet 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