Skip to main content
Library homepage
 

Text Color

Text Size

 

Margin Size

 

Font Type

Enable Dyslexic Font
Engineering LibreTexts

Search

  • Filter Results
  • Location
  • Classification
    • Article type
    • Author
    • Set as Cover Page of Book
    • License
    • Show TOC
    • Transcluded
    • OER program or Publisher
    • Autonumber Section Headings
    • License Version
    • Print CSS
  • Include attachments
Searching in
About 1 results
  • https://eng.libretexts.org/Courses/Oxnard_College/Matlab_and_Octave_Programming_for_STEM_Applications_(Smith)/04%3A_Vectors/4.05%3A_Indexing_Errors
    An index can be any kind of expression, but the value of the expression has to be a positive integer, and it has to be less than or equal to the length of the vector. >> Y(0) Array indices must be pos...An index can be any kind of expression, but the value of the expression has to be a positive integer, and it has to be less than or equal to the length of the vector. >> Y(0) Array indices must be positive integers or logical values. If it’s not an integer, you get an error: >> Y(1.5) Array indices must be positive integers or logical values. If the index is too big, you also get an error: The error messages use the word array rather than matrix, but they mean the same thing, at least for now.

Support Center

How can we help?