From: Duke Ng on 5 Feb 2010 10:19 "Julie " <julie.vogelman(a)lmco.com> wrote in message <hkfnf6$ahn$1(a)fred.mathworks.com>... > "Duke Ng" <duke.lists(a)gmx.com> wrote in message <hkfhuu$psm$1(a)fred.mathworks.com>... > > "Julie " <julie.vogelman(a)lmco.com> wrote in message <hkfags$2o7$1(a)fred.mathworks.com>... > > > So, I have a C# application which calls Matlab: > > > > > > MLApp app = new MLApp(); > > > app.Execute(...); > > > > > > This executes a .m file I have which produces a figure of a graph that pops up in a new window. Every 10 seconds, I reexecute this .m file in order to update the graph with new data. This causes Matlab to steal the focus on my computer, which makes it virtually impossible to type into other applications running on my machine, because what I'm typing instead gets entered into the Matlab command window. > > > > > > What can I do to prevent Matlab from stealing focus on my computer? > > > > > > Julie > > > > You can also try figure's *invisible* mode > > > > fig = figure; > > set(fig,'visible','off'); > > plot(c, fig); > > close(fig); > > > > Bests, > > > > D. > > What does "invisible" mean? I do want my figure to be visible. Invisible means there is nothing showing up on your screen at all, the figure is created in the background. It seems like you want to create something like a movie, or an animation, then that would not be the case. Sorry for that confusing. D. |