Borrar filtros
Borrar filtros

How to write .his file

3 visualizaciones (últimos 30 días)
Rami
Rami el 23 de Mzo. de 2012
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

Respuestas (0)

Categorías

Más información sobre Low-Level File I/O en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by