User Tools

Site Tools


binread
no way to compare when less than two revisions

Differences

This shows you the differences between two versions of the page.


binread [2010/06/22 16:01] (current) – created jochen
Line 1: Line 1:
 +====== binread (reference only) ======
 +<file>  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</file>
 +
 +===== Example =====
 +<code matlab binread_example.m>% read VMR as a vector (incl. header)
 +vmr_file = binread([neuroelf_path '/_files/colin/colin.vmr']);
 +
 +% show variables
 +whos</code>
 +
 +This produces:
 +
 +<file>  Name          Size                     Bytes  Class    Attributes
 +
 +  vmr_file      1x16777344            16777344  uint8</file>
  
binread.txt · Last modified: 2010/06/22 16:01 by jochen