Matlab/Octave Codes
All the codes used for demonstrations in lecture, and in solutions to homework, will appear here.
See this page and this PDF regarding tools for computing in this course.
from lectures
- blockimage.m Show a real matrix as a grey-scale image.
- pie.mat An image saved as a
.mat
Matlab data file. Compare the original image. - piecompress.m Application of SVD. Show low-rank, i.e. compressed, approximations of a matrix.
- badlu.m Generate matrices nearly of form (22.4), and demonstrate that Matlab’s lu(A) produces huge errors on these matrices.
from homework solutions
From Assignment #1:
From Assignment #2:
From Assignment #3:
From Assignment #5:
From Assignment #6:
From Assignment #7:
From Assignment #9:
From Assignment #10: