How to write code for Recursive Least square for parameter estimation?

Hello,
I have written parameter estimation using recursive least square with forgetting factor code. But the output seems to be disturbing.
I am facing problem with many things including the vectorization and all as well. Can anyone provide or correct the code based on my application?
The algorithm is stated as:-
Data and code is given below, please help me on this one.

Answers (0)

Asked:

on 17 Jun 2022

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!