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
- Hopefully server problems that will be fixed
- Mathworks tutorials can substitute for Edinburgh
Hour exam 1 is Friday (Feb. 28)
- Covers material through matrices (lessons 1 through 6, e.g., expressions, variables, vectors, scripts, plotting, matrices, etc.)
- In class, full class time
- 3 - 5 short-answer questions (e.g., write fragments of Matlab code, tell me what fragments of Matlab code do, etc; 10-15 minutes per answer)
- Open reference materials (book, notes, computer) but closed person
- “Open computer” includes Matlab
- Practice by solving small problems
Programming project 1
- 3D plotting
- Handout
- I hope to use programming projects in a study of how well the “flipped” teaching works, separate from regular grades.
- Anonymous scoring against course learning outcomes by me, grading against assignment-specific criteria by TAs
- Consent form
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
- Chapter 5 up to but not including section 5.2.1 of Attaway
- Top of page 147 through top 1/3 of 160
- “The for loop” from Edinburgh
- “Programming introduction” and “For loops” sections (under “Programming”) in the “Logic and Control Flow” chapter from Mathworks tutorials.
- Khan Academy lectures on Riemann sums: 4 of the 5 lectures beginning with “Simple Riemann appoximation using rectangles” at https://www.khanacademy.org/math/calculus/integral-calculus/riemann-sums/v/simple-riemann-approximation-using-rectangles (skip “Trapezoidal approximation of area under curve”)
- My mini-lecture on designing and testing programs, at https://cloud.ensemblevideo.com/app/sites/index.aspx?destinationID=IlO-D-b-vUWVkAsj2Is5Z
Next Lecture