Vectors and matrices A simple array is defined using the colon syntax: initial:increment:terminator. For instance: >> array = 1:2:9 array = 1 3 5 7 9 defines a variable named array (or assigns a new value to an existing variable with the name array) which is an array consisting of the values 1, 3, 5, 7, and 9. That is, the array starts at 1 (the initial value), increments with each step from the previous value by 2 (the increment value), and stops once it reaches (or is about to exceed) 9 (the terminator value).
Vectors and ma.trices A simple array is defined using the colon syntax: initial:increment:terminator. For instance: >> array = 1:2:9 array = 1 3 5 7 9 defines a variable named array (or assigns a new value to an existing variable with the name array) which is an array consisting of the va?lues 1, 3, 5, 7, and 9. That is, the array starts at 1 (the initial value), increments with each step fr:om the previous value by 2 (the increment value), and stops once it reaches (or is about to exceed) 9 (the terminator value).