Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: differentiate
Date: Mon, 18 Oct 2010 01:12:04 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 10
Message-ID: <i9g6t3$e2t$1@fred.mathworks.com>
References: <i9g5g3$ekp$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1287364324 14429 172.30.248.37 (18 Oct 2010 01:12:04 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 18 Oct 2010 01:12:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1187260
Xref: news.mathworks.com comp.soft-sys.matlab:679171

"mahshid " <mahshid770@yahoo.com> wrote in message <i9g5g3$ekp$1@fred.mathworks.com>...
> Hi there,
> 
> I have problem in differentiating an equation in my Matlab code, there is this error "Difference order N must be a positive integer scalar" when i use "diff" command to differentiate my Eq.
> could u pls tell how i can do it?
> tanx
- - - - - - - - - - -
  Show in detail how you call on 'diff' and we'll show you how your "difference order" argument (the second argument) is not a positive integer scalar.  Conceivably negative values could be interpreted as indefinite integrals (though they aren't,) but it is hard to visualize what a fractional order derivative might be.

Roger Stafford