Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
matlab error - exceeds matrix dimensions

Subject: matlab error - exceeds matrix dimensions

From: David

Date: 9 Dec, 2012 00:13:09

Message: 1 of 2

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

Subject: matlab error - exceeds matrix dimensions

From: Sadik

Date: 10 Dec, 2012 01:52:12

Message: 2 of 2

Hi David,

Make sure you don't have a variable named fplot as in fplot = ... !!! :)

Best.

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us