First of all, Click on ‘setpath’ in Matlab (window shows like below picture), In setpath window click on Add with subfolders… then select the StaMPS folder (the downloaded StaMPS path).
Once you will add the path, just run stamps(1,1) command in matlab.
But before running the stamps in Matlab, you should complete the mt_prep_snap step in terminal.