Scilab Function
Last update : 20/8/2006

file_int - writes intensity distribution into a txt file.

Calling Sequence

[field_out]=file_int(field_in,fnam[,time[,imax[,gnuplot]]])

Parameters

Description

file_int writes the intensity distribution into a txt file which may be processed or plotted with Scilab graphical functions. One argument is necessary: the output filename. Default grid size is 64x64, you may change the default dimension with the imax argument. Files saved with file_pha and file_int (set the gnuplot paramter to 1) can also be imported with fil_ter , which automatically recognizes pgm and gnuplot formats.

Examples

	F1=begin(0.01,1e-6);
	F2=gauss(F1,0.004);
	
	file_int(F2,"file1");	
	file_int(F2,"file2",1);	
	file_int(F2,"file3",-1,0);	
	file_int(F2,"file4",-1,128);	
	file_int(F2,"file5",-1,128,1);	
	
	in = fscanfMat('file1.txt');
	surf(in);
 

Author

Chen jingyuan, Gan guangyong (IAPCM, Beijing,China.)

See Also

dwf_fits ,   file_ps ,   file_pha ,   file_pgm ,   cros_out ,