程序代写 Use Julia or Matalb to apply the algorithm presented in the lecture notes t

Use Julia or Matalb to apply the algorithm presented in the lecture notes to solve the nonlinear least-squares
example above. (i.e. using the same data and specification form)
• Remarks:
1. You have then to program the different steps instead of using a direct function like “curve _fit”

Copyright By PowCoder代写 加微信 powcoder

2. You will create a loop. (while loop is better here)
3. For each iteration, you use your estimated values from the previous iteration (or initial guess) to calculate your
new estimated value.
4. You get a new estimated value you can use in the next iteration.
5. You stop when the distance between two consecutive estimated values is small enough. (you can take the norm
of the difference between consecutive estimated vector p)
6. When you calculate the Jacobian for the two parameters, it is easier to do it creating a matrix . You can call a
column of a matrix by using “:”. Each column of will be the Jacobian w.r.t. one parameter.
7. You should use .* instead of * for element-wise (element by element) multiplication
You only need to estimate the parameters
• don’t forget to explain your code with a few comments (comments after ‘#)
Provide the code with comments in a Julia file. (il) The file name should have the following format:

程序代写 CS代考 加微信: powcoder QQ: 1823890830 Email: powcoder@163.com