This link can help - https://in.mathworks.com/help/matlab/creating_guis/app-sharing.html
If you are directly sharing your App, you need to add the dependancies. You any of the other methods mentioned in the link to avoid these dependancies
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!