I am trying to do least squares fitting for a homework assignment
I have included my code and related workspace as an attachment. I am having issues with line 8. I have fiddled with the code but haven't found a solution.
(also I know I don't need the n variable its just there for now)
an explanation of what is wrong and how to solve would be very much appreciated. Thank you!