Lecture_4

# Lecture_4 - Lecture 4 Comp 116 Jan 26th 2009 Objectives...

This preview shows pages 1–9. Sign up to view the full content.

Click to edit Master subtitle style 10/6/09 Lecture 4 Comp 116 Jan 26th , 2009

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
10/6/09 Objectives Scripts
10/6/09 Vectors & Matrices

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
10/6/09 Definition Vector from physics: A construct with a value and a direction Can decompose into orthogonal components A collection of numbers: column row Not a set! [12 45 64] is different from [45 12 64].
10/6/09 Definition Matrix: m rows, c columns Higher dimensional m x n x p (tensors …) Vector row vector: matrix 1 x n column vector: matrix m x 1

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
10/6/09 Creating using [ … ] new_vector = [1 2 3 4]; new_vector = [1; 2; 3; 4]; matrix = [ 1 2 3; 4 5 6; 7 8 9; 10 11 12]; 1 2 3 4 1 2 3 4 1 2 3 4 5 6 7 8 9 10 11 12
10/6/09 Creating using [ … ] A = [ 1 2 3 ] [ A A ] [ A; A ] A could be a vector or a matrix. 1 2 3 1 2 3 1 2 3 1 2 3

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
Creating using : operator a:b [a, a + 1, a + 2, … , b – 1, b ] What is 5:10 ? [ 5 6 7 8 9 10]
This is the end of the preview. Sign up to access the rest of the document.

## This note was uploaded on 03/22/2009 for the course COMP 116 taught by Professor Stotts during the Spring '08 term at UNC.

### Page1 / 28

Lecture_4 - Lecture 4 Comp 116 Jan 26th 2009 Objectives...

This preview shows document pages 1 - 9. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online