CS 1371 Notes 8-21 - All Vectors have a length (v),...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Vectors Are used to contain a collection of data Can be empty o 0>vectors Are used as 1 row and a # of columns or 1 column and a # of rows Are used with hard coding Example o V=[57,105,99] o Each element (number) has two main properties: value and position (in the vector)
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: All Vectors have a length (v), type/class (the type of data being held in the vector) How to generate a Vector of all Even Number between 2-16 Colon String o Start Value:Step Value: Stop Value o Ex. 1:2:5 = [1,3,5] o Ex. 2:2:16 = [2,4,6,8,10,12,14,16]...
View Full Document

This note was uploaded on 08/28/2011 for the course CS 1371 taught by Professor Stallworth during the Fall '08 term at Georgia Institute of Technology.

Ask a homework question - tutors are online