Some parts are commented in Polish. Sorry for that :) You might be also interested in http://www.mathworks.com/matlabcentral/fileexchange/57352-extended-luenberger-observer-for-speed-sensorless-ac-motor-drive .
Bartlomiej Ufnalski (2020). Luenberger observer for speed-sensorless DC motor drive (https://www.mathworks.com/matlabcentral/fileexchange/57169-luenberger-observer-for-speed-sensorless-dc-motor-drive), MATLAB Central File Exchange. Retrieved .
.mdl converted to .slx
Info on ELO added.
A typo in a formula was corrected.