Path: news.mathworks.com!newsfeed-00.mathworks.com!news.kjsl.com!newsfeed.stanford.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: Wrap a plot?
Date: Wed, 4 Jun 2008 19:04:40 +0000 (UTC)
Organization: National Research Council Canada - Conseil national de rechereches Canada
Lines: 35
Message-ID: <g26p08$rke$1@canopus.cc.umanitoba.ca>
References: <g26n8u$mhd$1@fred.mathworks.com>
NNTP-Posting-Host: origin.ibd.nrc.ca
X-Trace: canopus.cc.umanitoba.ca 1212606280 28302 192.70.172.160 (4 Jun 2008 19:04:40 GMT)
X-Complaints-To: abuse@cc.umanitoba.ca
NNTP-Posting-Date: Wed, 4 Jun 2008 19:04:40 +0000 (UTC)
Originator: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)
Xref: news.mathworks.com comp.soft-sys.matlab:472212



In article <g26n8u$mhd$1@fred.mathworks.com>,
David Doria <daviddoria@gmail.com> wrote:
>I have values of x between 0 and 360 (angles). I have values
>corresponding to those angles in y.

>for example
>x = [1 4.5 7 9.8];
>y = [1 2 3 4];

>I am interested in what happens at the 0/360 line, and now
>those things are on opposite sides of the plot.  I'd like to
>have the plot like this

>270....360/0...90

>rather than

>0....180....360

>Is there a way to specify this in the plot properties?

No. But you can

xph = x >= 270 & x < 360;
xpl = x >= 0 & x <= 90;
plot([x(xph),360+x(xpl)], y([xph xpl]) );

and then set the XTick to [270:step:450]
and set the XTickLabels to [270:step:360-step 0:step:90]
for appropriate step size.

-- 
Q: Why did the chicken cross the Mobius strip?

A: There were manifold reasons.