User Tools

Site Tools


binread

Differences

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

Link to this comparison view

binread [2010/06/22 18:01] (current)
jochen created
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 18:01 by jochen