running a script from a function



hello all,

I have a GUI made using GUIDE. now I want to run
1 script file when GUI opens , in the

function mygui_OpeningFcn(hObject, eventdata, handles, varargin)

when I call my .m script inside this function it works but
variable not come to the workspace.

then I tried with eval , it throws an error

"Attempt to execute SCRIPT my_script as a function."

any method to run a script from a function and bring var
inside the script to workspace?

Thank in Adv
.



Relevant Pages

  • Re: running a script from a function
    ... script file when GUI opens, ... variable not come to the workspace. ... do not rely on global variables and do not use ...
    (comp.soft-sys.matlab)
  • Re: running a script from a function
    ... script file when GUI opens, ... function mygui_OpeningFcn(hObject, eventdata, handles, varargin) ... variable not come to the workspace. ...
    (comp.soft-sys.matlab)
  • Controling Modal Dialogs
    ... In order to trap new windows created by script calls to window.open, ... Form and a new browser control in that tab. ... window.external.showModalDialog(dialog, varArgIn, varOptions);} ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)
  • Re: Global and local variables and environments
    ... more) script per circuit. ... A simple workspace package. ... (or (arrayref workspaces wsName) ...
    (comp.cad.cadence)
  • Re: how to retain function variables in base works
    ... That's just how functions work. ... Back up and ask the real question, instead of for the solution you ... If you really need all that stuff in the base workspace, ... really need a script, so use a script. ...
    (comp.soft-sys.matlab)