像平常一样:
player=audioplayer(snd1,FS1);
play(player);
%let as suppose that sound duration is 10 seconds
% and I wanted to play the sound from second 5 or 7...
% .. depending on the input of user(and using audioplayer libraries)
Run Code Online (Sandbox Code Playgroud)