1234567891011121314151617181920212223 |
- function presc = write_presc(varargin)
- mkdir(struct2str);
- cd varargin;
- fid = fopen('TumorDosePlus.bin','wb');
- fwrite(fid,varargin.x_count,'int');
- fwrite(fid,varargin.y_count,'int');
- fwrite(fid,varargin.z_count,'int');
- fwrite(fid,varargin.Nind,'int32');
- fwrite(fid,varargin.non_zero_indices,'int32');
- fwrite(fid,varargin.non_zero_values,'single');
- fclose(fid);
- fid = fopen('TumorDoseMinus.bin','wb');
- fwrite(fid,varargin.x_count,'int');
- fwrite(fid,varargin.y_count,'int');
- fwrite(fid,varargin.z_count,'int');
- fwrite(fid,varargin.Nind,'int32');
- fwrite(fid,varargin.non_zero_indices,'int32');
- fwrite(fid,varargin.non_zero_values,'single');
- fclose(fid);
- cd ..;
|