Example: tourism industry
Octave Tutorial 2: Vectors and Matrices
The step can be any size, even negative, in which case it will count down to the end number. The colon notation can also be used in the de nition of multi-row matrices. For example, octave#:#> X = [1:3; 8:-2:4] X = 1 2 3 8 6 4 Exercise 1: What command line would you type to assign the vector [1.0 0.8 0.6 0.4 0.2]to the variable Xusing the colon ...
Tags:
Information
Domain:
Source:
Link to this page:
Please notify us if you found a problem with this document: