% function nahraj
% % toto je jenom skript a nahraje soubor do workspace

rec = audiorecorder(10000,8,1);
disp('Start speaking.')
recordblocking(rec, 5);
disp('End of Recording.');

% Play back the recording.
play(rec);

nahravka = getaudiodata(rec);
save('nahravka.mat','rec')