Scilab Function
Last update : 18/8/2006

cros_out - writes X and Y cross sections of intensity and phase distributions into file .

Calling Sequence

[field_out]=cros_out(field_in,fnam[,time])

Parameters

Description

Surface plots are not always acceptable - sometimes two-dimensional plots of the cross section of the light beam are of interest. It is especially actual for wrapped phase plots, which look awful in three dimensions. The command cros_out writes into a file the X and Y cross sections of the field distributions. Five type data are written in the output file: (x,int(num/2,0),int(num/2,x),pha(x,num/2),pha(num/2,x)), they are: the location of cross point, the intensty of cross by X axes, the intensty of cross by Y axes, the phase of cross by X axes,the phase of cross by Y axes. you can rocess or plot these data with Scilab graphical functions.

Examples

	F1=begin(0.01,1e-6);
	F2=gauss(F1,0.004);
	
	cros_out(F2,"file1");	
	cros_out(F2,"file2",1);	
	
	temp = fscanfMat('file1.txt');
	x=zeros(1,256);int_x=zeros(1,256);
	x(:)=temp(:,1);int_x(:)=temp(:,2);
	plot2d(x,int_x);	
 

Author

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

See Also

dwf_fits ,   file_ps ,   file_int ,   file_pgm ,   file_pha ,