This figure illustrates MATLAB receiving data from an input buffer. The MATLAB command used to receive the data is out = fscanf(s).