clear;
fs = 44100;
ai = analoginput('winsound',0);
addchannel(ai,[1 2]);
set(ai,'SampleRate',fs);
set(ai,'SamplesPerTrigger',fs);
start(ai);

data = getdata(ai);
plot(data);

delete(ai);
