Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

Assignment 1

Numerical Methods

1. Exercise 1.8 from VLMS book*


2. Exercise 1.11 from VLMS book
3. Solve the following system of linear equation using LU decomposition, i.e., first find the LU
decomposition and then use forward and backward substitutions to solve for x.
2𝑥 − 3𝑦 − 𝑧 = 0
−𝑥 + 2𝑦 + 𝑧 = 5
3𝑥 − 4𝑦 − 𝑧 = 1
4. Write a Matlab/Octave function find_idx that takes a vector and a number as input and returns
the indices where the number is found. For example: find_idx([2 1 2 1 2], 2) will return [1 3 5].
5. Write the Matlab/Octave code Input an image, convert it to grayscale image and then divide it
into four equal parts and display them in 2 x 2 subplots (an example is given below)

6. Exercise 1.4 from 133A-Exercises**. Find the decoding.m script file mentioned in the exercise
from http://www.seas.ucla.edu/~vandenbe/133A/matlab-files/

*Find VLMS book in google drive books/Vector_Matrices_Least_Squares/


Or get it from here.

**Find 133A-Exercises in the google drive books/Applied Linear Algebra – UCLA/ folder
Or get it from here.

You might also like