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: Event Object for Datacursormode
Replies: 7   Last Post: Dec 30, 2012 11:05 PM

Advanced Search

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

Posts: 11
Registered: 12/30/12
Event Object for Datacursormode
Posted: Dec 30, 2012 12:21 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hello everyone,

I am trying to capture data information on the plot using datacursormode, my general format is as follows:

fig = figure();
x = sin(t);
'SnapToDataVertex','on', ...

where datatextbox is my update function and its general format is:

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.

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

[Privacy Policy] [Terms of Use]

© The Math Forum 1994-2015. All Rights Reserved.