How to write .his file
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Import and Analysis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!