this link should get you started: https://de.mathworks.com/help/compiler/index.html
But stackoverflow and the matlab forum have a lot of similar questions. It all depends on what version you are using. I did it myself and it took a while to set up due to random errors, so don' get discouraged.