This is a fast orthogonal algorithm
Run the file called nonlinear_main.
The input data can be changed by changing the variable x_in
The system can be changed by changing the yariable y_true
The P value can be changed by modiying the array.
The triangle wave signal requires signal processing tool box.