Answered step by step
Verified Expert Solution
Question
1 Approved Answer
**MATLAB ONLY*** Question 4: The above approach will break if you have more than two points. The design matrix D with n > 2 points
**MATLAB ONLY***
Question 4: The above approach will break if you have more than two points. The design matrix D with n > 2 points is not even square, so you cannot find its inverse as we did above. 1 x1 1 x But before looking at the case of three or more points, let's verify that using the least squares matrix DD gives the same line we just found in the case of the two points. How can we solve the equation -D if D is not even square? First multiply both sides by DT obtaining: Now multiply by (DD)-1 and exchange sides to find: Implement this alternative approach in MATLAB, and verify you get exactly the same line you found previously. Hint: First find the matrix: D2 transpose (D)*D = ENGR 231 - Linear Engineering Systems Question 4: Paste your code here to find the parameter vector using: -(DD)-1DT D2 -transpose(D) * D % given for free Add more code here to find b Are the intercept and slope the same as before? The intercept for this line is- The slope for this line is A =
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started