# Mathematics of Signal Representations

## Math4355 - Spring 2013 - Homework

**Assignment 2, due Thursday, January 31**

- Review 0.4, 0.5.1, 0.5.2 and to prepare for Exercise 26, read Section 0.7.1 up Theorem 0.34.
- Do Exercises, p. 36-37: 14; 15; 17; 26 (c) (assuming 26 (a) and (b) are true, solve for m and b
in terms of the data x
_{j} and y_{j});

- (Matlab project) Download the linked file
fitdata.mat (right click and save), load it into Matlab and plot the
function
**y(x)** using the Matlab command **plot** and the
loaded vectors **x** and **y** containing the values for the
independent variable x and the function value y.
Include the plot in your homework. Following the strategy outlined in
Section 0.7.1, write a program (matlab script) that will compute the
least squares fit line **f(x)=mx+b** to approximate the "noisy"
function values **y(x)** in fitdata.mat. Attach a printout of
your program to your homework. Combine the plots for the function
**y(x)** and the fit **f(x)** in one figure (e.g. using the
Matlab command **hold on** after performing the first **plot**).
Record the values of **m** and **b** computed by your fit program
in your homework.