]> Creatis software - CreaPhase.git/blob - utilities_ESRF/readedfheader.m
useful functions for simulations, created by ESRF people mainly (free to use)
[CreaPhase.git] / utilities_ESRF / readedfheader.m
1 % function hd=readedfheader(fid)
2
3 function hd=readedfheader(fid)
4
5 headerlength = 512;
6 closing = '}';
7 hd = fscanf(fid,'%c',headerlength);
8
9 while not(strcmp(hd(end-1),closing))
10         hd = [hd fscanf(fid,'%c',headerlength)];
11 end