How to write .his file

1 次查看(过去 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 中查找有关 Data Import and Analysis 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by