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 17, 2013 1:53 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 <kkl2oh$q7k$1@speranza.aioe.org>...
> On 4/16/2013 8:51 PM, PK wrote:
> ...
>

> > Not sure I have understood fully..But here is my code
> >
> > ts=strvcat(Timedata{1});
> > dn=datenum(ts(:,1:12),'yyyymmddHHMM');

>
>

> > datestr(dn)
>
> Only comment--the above datestr() call was only to show the result of
> the datenum() call above when translated back...don't need it at all.
>

> > plot(dn,mydata{29});
> > dcm_obj = datacursormode(figure);
> > set(dcm_obj,'UpdateFcn',@myupdatefcn)
> > set(gca,'XtickL',ts);
> >
> > In addition I have my updatefcn.m in my matlab directory as below..
> >

> ...snip for brevity...
>

> > the o/p is the same graph with timestamp on x axis and data on y with
> > data tip a number and data instead time and data.
> > thanks

>
> Great...glad to help along w/ Steven's pointer to datacursormode. I
> shoulda' looked for something on those lines and found it but was lazy. :)
>
> --


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



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.