Path: news.mathworks.com!newsfeed-00.mathworks.com!newscon02.news.prodigy.net!prodigy.net!news.glorb.com!news.aset.psu.edu!news.cse.psu.edu!elk.ncren.net!newsflash.concordia.ca!canopus.cc.umanitoba.ca!not-for-mail
From: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)
Newsgroups: comp.soft-sys.matlab
Subject: Re: label points
Date: Sat, 9 Feb 2008 19:51:45 +0000 (UTC)
Organization: National Research Council Canada - Conseil national de rechereches Canada
Lines: 12
Message-ID: <fol08h$l7n$1@canopus.cc.umanitoba.ca>
References: <fokus2$c5h$1@fred.mathworks.com>
NNTP-Posting-Host: origin.ibd.nrc.ca
X-Trace: canopus.cc.umanitoba.ca 1202586705 21751 192.70.172.160 (9 Feb 2008 19:51:45 GMT)
X-Complaints-To: abuse@cc.umanitoba.ca
NNTP-Posting-Date: Sat, 9 Feb 2008 19:51:45 +0000 (UTC)
Originator: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)
Xref: news.mathworks.com comp.soft-sys.matlab:450358



In article <fokus2$c5h$1@fred.mathworks.com>,
Steve  <steveDEL.bachmeierDEL@yahoo.com> wrote:
>Is it possible to label only specific values when using
>plot() in Matlab?  i.e. I have many data points but want
>only the maximums and minimums labeled with (x,y_max).  Thanks!

Yes. Set the XTick and YTick properties each to a vector of only
the values you want labelled.
-- 
  "Every intellectual product must be judged from the point of view
  of the age and the people in which it was produced."
                                              -- Walter Horatio Pater