필터 지우기
필터 지우기

How to write .his file

조회 수: 3 (최근 30일)
Rami
Rami 2012년 3월 23일
Hi,
I manage to read .his file with following commands
function [buf]= ReadHis(filename)
fid= fopen(filename, 'r'); % open file for reading ('r')
if (fid);
pn= fseek(fid, 100, 'bof'); % seek to the 101th byte,
buf= fread(fid,[512 512], 'uint16'); % read 512x512 16-bit unsigned integers into variable 'buf'
end;
fclose(fid);
After reading the .his data, I did required modifications. Now I have 512x512 data. How can I write it back into .his format? Any suggestions and guidance will be appreciable.
Thanks, Rami

답변 (0개)

카테고리

Help CenterFile Exchange에서 Low-Level File I/O에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by