SUNY Geneseo Department of Computer Science


Matrices

Wednesday, February 26

CSci 120, Spring 2014
Prof. Doug Baldwin

Return to List of Lectures

Previous Lecture

Misc

Problems with Edinburgh videos

Hour exam 1 is Friday (Feb. 28)

Programming project 1

Questions?

Quiz 3

Solution

    A = [ 1 3; 6 4; 2 5 ]
    A =
        1     3
        6     4
        2     5
        
    % : notation (or vectors generally) in subscripts picks out sub-matrix
    A( 2:3, 2 )
    ans =
        4
        5

    % "max" and similar functions work along columns when applied to matrices
    max(A)
    ans =
        6     5

Matrices Lesson

Next

(After exam)

“For” loops, with application to integration by Riemann sums

Read / watch


Next Lecture