how can i write a M-file which it calculates sum of squares of data differences for Gauss Newton Method?
Info
This question is closed. Reopen it to edit or answer.
Show older comments
hi, i need some help to do my homework. x and y will be used for Gauss Newton method. y represents experimental values and yk represents theoretical values. here, i wrote them in matrice form.
I must find that; c=sum(y-yk)^2
x= [-3, -2, -1, 0, 1, 2, 3]
y= [14, 16, 18, 19, 21, 24, 28]
yk= 19 + 2*x + 0.2 * x^2
can you write a function about this on m-file?
1 Comment
John D'Errico
on 9 May 2014
Yes, I can. But this is your homework, and it seems you have made no effort. Try something.
Answers (0)
This question is closed.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!