SMM method (simulation by the method of moments)

Dear, Pfeifer,
I really appreciate you as a professional in Matlab programming in econometrics. But I have a request for you. I can not master the estimation of models parameters by the SMM method (simulation by the method of moments). Please send me a link to the code of this method (for a simpler model) .
I would be very grateful to you.
Sincerely, Serkov L.A.

Innovation, Reallocation, and Growth of Daron Acemoglu et al. used this method. You can download their codes and appendix to learn.
Innovation, Reallocation, and Growth - American Economic Association (aeaweb.org)

Thank you very much!