%%%%%%%%% D/A  %%%%%%%%%%%%%
%*** Make signal first!
AO = analogoutput('winsound');
addchannel(AO,1);
set(AO,'SampleRate',22050)
set(AO,'TriggerType','Manual')
putdata(AO,x)

start(AO)
trigger(AO)
waittilstop(AO,5)
delete(AO), clear AO


% setverify, different sampling rates(11025,22050,44100)