for ii = 1:256 val = uint8(ii)
#  val = hex2dec('a7');
  a = ones(2400,1)*val;
  f = fopen('a.a','wb', 'n', 'Windows-1252');
  fwrite(f,a,'uint8');
  fclose(f);

  f = fopen('a.a','rb');
  b = fread(f,2400,'uint8');
  fclose(f);

  a(1)
  b(1)
  assert(a(1), uint8(b(1)))
endfor
