The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: 'index exceeds matrix dimensions' using text function with bar

Replies: 7   Last Post: Jan 31, 2013 10:21 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]

Posts: 9,850
Registered: 6/7/07
Re: 'index exceeds matrix dimensions' using text function with bar

Posted: Jan 29, 2013 8:20 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

On 1/29/2013 6:48 PM, Chris wrote:
> I am trying to insert data values at the top of my bar plots using the
> text() function. I keep getting the error that 'index exceeds matrix
> dimensions'. I know what this error means, however my vectors in the
> text portion of the code all have the same length. An example of part of
> my plot code:


> I have no idea what is going on

Since you didn't post the message in context in which line it
occurred/occurs, we don't, either...

a) Show the actual message and context.

b) Use DEBUG and stop on error and investigate the indices in the
offending line of code. If that doesn't explain where you've made the
indexing error, then see a)


Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.