Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
NCTM or The Math Forum.



Re: matlab error  exceeds matrix dimensions
Posted:
Dec 8, 2012 11:26 PM


> Hi matlab community, > I'm having trouble with a fplot function (a fairly > simple one) > > I'm trying to plot: > > fplot('40/(1+(x4).^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+(x4).^2)+5*sin(20*x/pi)',[0 10])
Try restarting Matlab and running just the above line before you do anything else. It should work.
That is, there is nothing wrong with that line of code. My hunch is the error is on another line of your 'new_doc' script.



