This is a demonstration of the concept of gradient-free parameter identification in repetitive processes introduced in one of my previous models (www.mathworks.com/matlabcentral/fileexchange/47893-gradient-free-parameter-identification-in-repetitive-processes). It is highly recommended to make yourself familiar with "Gradient-free parameter identification in repetitive processes" prior to playing with this submission. Please feel free to contact me in case of any questions related to my models.
Some compatibility issues resolved -- now good to go with R2016b.
Create scripts with code, output, and formatted text in a single executable document.