Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: monotonic increasing or decreasing
Date: Sat, 3 Oct 2009 03:11:01 +0000 (UTC)
Organization: Battelle Energy Alliance (INL)
Lines: 7
Message-ID: <ha6fc5$bma$1@fred.mathworks.com>
References: <6dbac702-bc4a-4438-a3a5-498d8df85873@g22g2000prf.googlegroups.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1254539461 11978 172.30.248.38 (3 Oct 2009 03:11:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sat, 3 Oct 2009 03:11:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 688530
Xref: news.mathworks.com comp.soft-sys.matlab:574614


One approach:

x = [1 2 3 4 5 6]
all(diff(x)>0)  % increasing
% But now:
x(7) = 3
all(diff(x)>0)