https://www.mathworks.com/help/stats/linearmixedmodel.random.html
random - Generate random responses from fitted linear mixed-effects model - MATLAB
This MATLAB function returns a vector of simulated responses ysim from the fitted linear mixed-effects model lme at the original fixed- and random-effects...
linear mixed effects modelrandomgenerateresponsesfitted