<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/262201</link>
    <title>MATLAB Central Newsreader - monotonic increasing or decreasing</title>
    <description>Feed for thread: monotonic increasing or decreasing</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Sat, 03 Oct 2009 03:02:59 -0400</pubDate>
      <title>monotonic increasing or decreasing</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/262201#684342</link>
      <author>Mike</author>
      <description>Hi&lt;br&gt;
&lt;br&gt;
I search the web, but don't find any command about monotonic check.&lt;br&gt;
Given a series of data, I'd like to check if it is monotonic&lt;br&gt;
increasing or decreasing.&lt;br&gt;
&lt;br&gt;
Mike</description>
    </item>
    <item>
      <pubDate>Sat, 03 Oct 2009 03:11:01 -0400</pubDate>
      <title>Re: monotonic increasing or decreasing</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/262201#684344</link>
      <author>Matt Fig</author>
      <description>One approach:&lt;br&gt;
&lt;br&gt;
x = [1 2 3 4 5 6]&lt;br&gt;
all(diff(x)&amp;gt;0)  % increasing&lt;br&gt;
% But now:&lt;br&gt;
x(7) = 3&lt;br&gt;
all(diff(x)&amp;gt;0) </description>
    </item>
    <item>
      <pubDate>Sat, 03 Oct 2009 03:16:31 -0400</pubDate>
      <title>Re: monotonic increasing or decreasing</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/262201#684345</link>
      <author>Mike</author>
      <description>On Oct 3, 11:11&#160;am, &quot;Matt Fig&quot; &amp;lt;spama...@yahoo.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; One approach:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; x = [1 2 3 4 5 6]&lt;br&gt;
&amp;gt; all(diff(x)&amp;gt;0) &#160;% increasing&lt;br&gt;
&amp;gt; % But now:&lt;br&gt;
&amp;gt; x(7) = 3&lt;br&gt;
&amp;gt; all(diff(x)&amp;gt;0)&lt;br&gt;
&lt;br&gt;
Thank you.  It works.&lt;br&gt;
&lt;br&gt;
Mike</description>
    </item>
  </channel>
</rss>

