- #1
sheepover
- 4
- 0
Homework Statement
Test these two equations, using least-squares fitting of the data (ti, bi), i = 1, 2, . . . , 100:1.[tex]b(t) = d_{1} + d_{2}te^{-t} + d_{3}t^{2}e^{-2t}[/tex]2.
[tex]b(t) = d_{1} + d_{2}\sqrt{t}e^{-\sqrt{t}} + d_{3}te^{-2\sqrt{t}}[/tex]
where d1, d2, d3 in R are unknown.
For both theories, compute the resulting values of the constants d1, d2, d3 and produce a graph that shows the original data and the computed function b(t).
Which one of the two theories is more appropriate for the given data?We are given t and b as 1x100 matrices in matlab, and I also have a Modified Gram-Schmidt program in MATLAB that computes Q and R for any matrix A, which is supposed to be used to solve this problem.
Homework Equations
A = QR
ATAx = ATb
min||b-Ax||
The Attempt at a Solution
Not even sure where to start. I've been searching online for any guidance for hours. Textbook is no help either.
If someone could at least point me in the right direction, or give me some steps to solve this, it would be appreciated.