X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?p=CreaPhase.git;a=blobdiff_plain;f=utilities_ESRF%2Freadedfheader.m;fp=utilities_ESRF%2Freadedfheader.m;h=132f428ee465114a452baee64bff8e20f3b12cad;hp=0000000000000000000000000000000000000000;hb=99b9890c11d31f9ae22dd481873e01c708175073;hpb=d0401c49b6b7511cfdaa0534b78bd3c5b2b0637a diff --git a/utilities_ESRF/readedfheader.m b/utilities_ESRF/readedfheader.m new file mode 100644 index 0000000..132f428 --- /dev/null +++ b/utilities_ESRF/readedfheader.m @@ -0,0 +1,11 @@ +% function hd=readedfheader(fid) + +function hd=readedfheader(fid) + +headerlength = 512; +closing = '}'; +hd = fscanf(fid,'%c',headerlength); + +while not(strcmp(hd(end-1),closing)) + hd = [hd fscanf(fid,'%c',headerlength)]; +end