Tutorial: Systems of Nonlinear Equation
For n equations with n unknowns
Problem 1
Solve for x, y from

Tutorial: MATLAB
Create MATLAB program for solving a system of non-linear equations
Download the tutorial source file and fill in the blanks.
MATLAB tutorial source file : TU_SystemNonlinear.zip
1) Define functions that returns vector F(x) and matrix J(x).
Matrix myFuncEx1(Matrix X); // X: vector in. Returns Vector F (nx1)
Matrix myJacobEx1(Matrix X); // X: vector in. Returns Matrix J (nxn)
2) Define a system non-linear solver
Matrix nonlinearSys(Matrix Func(Matrix _Z), Matrix Jacob(Matrix _Z), Matrix _Z0, double tol);
returns solution vector XN (nx1)
3) Then, solve the example problem
Tutorial: C-Programming
Create a new project β TU_SystemNonlinearβ with Visual Studio, under the directory
\NP\tutorial\Download the tutorial source file from
C-program tutorial source file : TU_SystemNonlinear_student.cpp
Add the downloaded source file under the project folder.
Fill-in the blanks
Problem 2
Solve for the 3-DOF transformation, angle (ΞΈ) and translation T=[Ξx, Ξy], to move the vehicle to the new pose?
Solution= [ΞΈ=30 deg , Ξx =100 , Ξy= 100 ]

Last updated
Was this helpful?