Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: How to pass parameters between local functions of uicontrol, pushbutton?
Replies: 1   Last Post: May 15, 2014 9:59 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
shirin

Posts: 2
Registered: 5/15/14
How to pass parameters between local functions of uicontrol, pushbutton?
Posted: May 15, 2014 6:10 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

I am writing a program in which a figure is created. I have added 3 uicontrol pushbuttons. the idea is this: user can select the desired part of data by one of pushbuttons and save the selected part by another pushbutton. if he/she doesn't want to save is able to cancel the selected part by the other pushbutton,'cancel'.

My problem is that I can not pass parameters from one local function of pushbutton to the other one I mean matlab forgets the variables created in one local function when it goes out of it. what can I do?



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.