You obviously read this documentation, which is about recording data from ports: http://www.mathworks.de/de/help/matlab/ref/record.html
This is the record function of the audiorecorder: http://www.mathworks.de/de/help/matlab/ref/audiorecorder.record.html
Second input argument is the duration.