Linear Least-Squares Regression for Matlab

204 Views Asked by At

enter image description here

I am having trouble understanding this problem. I was thinking that the heart rates have something to do with the $\omega_1$ and $\omega_2$, but I'm not really sure how these play a role in the problem. Also, I do not understand how to do the least squares with the cosine function in the error term. Any help would be greatly appreciated.