Date: Dec 8, 2012 7:13 PM
Author: David
Subject: matlab error - exceeds matrix dimensions

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...