Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: matlab error - exceeds matrix dimensions
Date: Sun, 9 Dec 2012 00:13:09 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 15
Message-ID: <ka0l2l$2lc$1@newscl01ah.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: www-03-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: newscl01ah.mathworks.com 1355011989 2732 172.30.248.48 (9 Dec 2012 00:13:09 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sun, 9 Dec 2012 00:13:09 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 3862507
Xref: news.mathworks.com comp.soft-sys.matlab:784461

Hi matlab community,
I'm having trouble with a fplot function (a fairly simple one)

I'm trying to plot:

fplot('40/(1+(x-4).^2)+5*sin(20*x/pi)',[0 10])

However I keep getting the error:

??? Index exceeds matrix dimensions.

Error in ==> new_doc at 20
fplot('40/(1+(x-4).^2)+5*sin(20*x/pi)',[0 10])

I'm not really sure where I'm going wrong...