In this repository, I posted MATLAB codes for simulating the behavior of a Model Reference Adaptive Control (MRAC) algorithm. A detailed post that explains the basics of the MRAC algorithm is given here: https://aleksandarhaber.com/simulation-of-model-reference-adaptive-controller-in-matlab-part-i-mit-rule-and-a-first-order-system/
A YouTube video explaining the MRAC algorithm is given here https://www.youtube.com/watch?v=5xLbtyN5XBU
The files are: 1.) "main_file_adaptive.m" - the main file for simulating the dynamics. You can start from this file.
2.) "dynamics_adaptive.m" - the MATLAB function describing the closed-loop dynamics.
LICENSE: THIS IS NOT FREE SOFTWARE AND CODE. IF YOU WANT TO USE THIS CODE IN THE COMMERCIAL SETTING OR ACADEMIC SETTING, THAT IS, IF YOU WORK FOR A COMPANY OR IF YOU ARE AN INDEPENDENT CONSULTANT AND IF YOU WANT TO USE THIS CODE OR IF YOU ARE ACADEMIC RESEARCHER OR STUDENT, THEN WITHOUT MY PERMISSION AND WITHOUT PAYING THE PROPER FEE, YOU ARE NOT ALLOWED TO USE THIS CODE. YOU CAN CONTACT ME AT
TO INFORM YOURSELF ABOUT THE LICENSE OPTIONS AND FEES FOR USING THIS CODE. ALSO, IT IS NOT ALLOWED TO
(1) MODIFY THIS CODE IN ANY WAY WITHOUT MY PERMISSION.
(2) INTEGRATE THIS CODE IN OTHER PROJECTS WITHOUT MY PERMISSION.
DELIBERATE OR INDELIBERATE VIOLATIONS OF THIS LICENSE WILL INDUCE LEGAL ACTIONS AND LAWSUITS.