Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
Drexel University or The Math Forum.
|
|
|
|
Re: Event Object for Datacursormode
Posted:
Dec 30, 2012 1:45 AM
|
|
Hi Matt,
Thank you for your reply. Can you please give me an example of how to make it into a nested function? much appreciated.
"Matt J" wrote in message <kbon7f$njj$1@newscl01ah.mathworks.com>... > "Nima Nikvand" <nnikvand@uwaterloo.ca> wrote in message <kboj05$ahe$1@newscl01ah.mathworks.com>... > > > > function [txt,pos] = datatextbox(~,event_obj) > > > > and this works very well. However, I'd like to be able to get the output of my datatextbox function and I was wondering if I can some how call the function directly by passing the event_obj to it. I'd greatly appreciate your suggestions, or any other solutions to get the output arguments. > ============= > > If you make datatextbox a nested function, every variable in its workspace will also be available in the workspace in which it is nested.
|
|
|
|