Lecture_4

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

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

View Full Document Right Arrow Icon
Click to edit Master subtitle style 10/6/09 Lecture 4 Comp 116 Jan 26th , 2009
Background image of page 1

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

View Full DocumentRight Arrow Icon
10/6/09 Objectives Scripts
Background image of page 2
10/6/09 Vectors & Matrices
Background image of page 3

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

View Full DocumentRight Arrow Icon
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].
Background image of page 4
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
Background image of page 5

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

View Full DocumentRight Arrow Icon
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
Background image of page 6
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
Background image of page 7

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

View Full DocumentRight Arrow Icon
Creating using : operator a:b [a, a + 1, a + 2, … , b – 1, b ] What is 5:10 ? [ 5 6 7 8 9 10]
Background image of page 8
Image of page 9
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 Right Arrow Icon
Ask a homework question - tutors are online