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: Pairing two different values on one plot
Replies: 19   Last Post: Apr 18, 2013 2:44 AM

Advanced Search

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

Posts: 7
Registered: 4/15/13
Re: Pairing two different values on one plot
Posted: Apr 18, 2013 2:44 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

dpb <none@non.net> wrote in message <kkmcsq$9ga$1@speranza.aioe.org>...
> On 4/17/2013 12:53 AM, PK wrote:
> ...
>

> > I still cant get the time in data cursor.
> > please help.

>
> Oh, I see I misread--I thought you were reporting success.
>
> Can you get the example to work w/ replacing the num2str() w/ a call to
> datestr() first? I did by using
>
> function txt = myupdatefcn(empt,event_obj)
> % Customizes text of data tips
>
> pos = get(event_obj,'Position');
> s=sprintf('%10s 00:00:%2.2d',datestr(fix(now)),pos(1));
> txt = {['Time: ',s],...
> ['Amplitude: ',num2str(pos(2))]};
>
> It gives the current date w/ the ordinal number of the axis point pos(1)
> displayed as the seconds.
>
> Your posted code looks like should work--if it isn't I wonder if you
> saved the m-file of the update function in a location that is on the
> matlabpath?
>
> Try
>
> which myupdatefcn
>
> from the command line and see if it is found...
>
> --


hey guys

I officially report success with my code.

I heartly appriciate all your effort and help.

thanks to Steve and dpb...



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.