Question: This problem will help you write one of the inputs to sysNewton.m . This problem is not sysNewton.m . When we solve systems of equations,

This problem will help you write one of the inputs to sysNewton.m. This problem is not sysNewton.m.
When we solve systems of equations, we will write the equations in vector form. Consider the following system of nonlinear equations which comes from GPS data:
There are two equations and two unknowns. Let the unknowns be written as a vector . This is slighly abusive notation in that the unknown vector contains a scalar unknown of the same name. We'll promise to be careful about using vector notation to distinguish the two.
We write the two equations as a single vector-valued function:
.
Write a vector-valued anonymous function for that takes in a single (vector) input . The output of the anonymous function should also be a vector.
Your code will then be used to verify the following outputs:
The output of when and . Store the result as p1.
The output of when and . Store the result as p2.
If you get an error about "vertcat" or matrix dimensions, be careful with spaces around your minus signs: [1-2; 3-4] will be recorded as a 2x2 matrix, but [1-2; 3-4] will be recorded as a column vector [-1;-1].
Finally, we want the Jacobian of using the same format: .
Evaluate J when and , store the result as d1, evaluate J when and , store the result as d2.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!