Digital twin model and Matlab based simulator