Path: news.mathworks.com!newsfeed-00.mathworks.com!nntp.TheWorld.com!newsswitch.lcs.mit.edu!newspump.monmouth.com!newspeer.monmouth.com!guardian.oit.duke.edu!news.glorb.com!news2.glorb.com!postnews.google.com!m33g2000pri.googlegroups.com!not-for-mail
From: Mike <sulfateion@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: monotonic increasing or decreasing
Date: Fri, 2 Oct 2009 20:16:31 -0700 (PDT)
Organization: http://groups.google.com
Lines: 12
Message-ID: <c0ee596b-1a02-4a25-8cf3-634095a242e3@m33g2000pri.googlegroups.com>
References: <6dbac702-bc4a-4438-a3a5-498d8df85873@g22g2000prf.googlegroups.com> 
	<ha6fc5$bma$1@fred.mathworks.com>
NNTP-Posting-Host: 140.130.155.210
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1254539792 26097 127.0.0.1 (3 Oct 2009 03:16:32 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Sat, 3 Oct 2009 03:16:32 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: m33g2000pri.googlegroups.com; posting-host=140.130.155.210; 
	posting-account=_SkeuAoAAAC009f9YVFWbpiyXNzGH2zw
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) 
	AppleWebKit/532.0 (KHTML, like Gecko) Chrome/3.0.195.24 Safari/532.0,gzip(gfe),gzip(gfe)
Xref: news.mathworks.com comp.soft-sys.matlab:574615


On Oct 3, 11:11 am, "Matt Fig" <spama...@yahoo.com> wrote:
> One approach:
>
> x = [1 2 3 4 5 6]
> all(diff(x)>0)  % increasing
> % But now:
> x(7) = 3
> all(diff(x)>0)

Thank you.  It works.

Mike