binread (reference only)

  binread  - reads a binary into one uint8 array
 
  FORMAT:       bincont = binread(filename)
 
  Input fields:
 
        filename    name to a file, preferably absolute path
 
  Output fields:
 
        bincont     1xN uint8 array
 
  See also asciiread, binwrite

Example

binread_example.m
% read VMR as a vector (incl. header)
vmr_file = binread([neuroelf_path '/_files/colin/colin.vmr']);
 
% show variables
whos

This produces:

  Name          Size                     Bytes  Class    Attributes

  vmr_file      1x16777344            16777344  uint8