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$>
Reply-To: <HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: 1355011989 2732 (9 Dec 2012 00:13:09 GMT)
NNTP-Posting-Date: Sun, 9 Dec 2012 00:13:09 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 3862507
Xref: 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...