% quitplotnf.m    Called by Curtain.2 to end curtain plotting program

%%%%%%%%%%%%%%%%%%%      QUIT            %%%%%%%%%%%%%%%%%%%%%%%%%%

	
	 % cla=menu('Quit what?','Quit Matlab altogether',...
         %         'Quit Curtain Plot Routine');
	  %if cla==1;
	    close(figure(1))
	   % quit;
	 % else
  	    clear datrange elv_min m xkm azm_cur depth fig sli_azm ykm vol         
	    clear azm_label elv_cur sli_elv azm_min elv_label g colmap elv_max  vol    
	    clear yint xint nn qq rr trandist mm  dlat dlon deltapos cc az el
	    clear lat lon H1 inparams plot_file MENU_VARIABLE cla depth_interval
	    clear title_text           
	    %close all
       clear agl         ed1         ed5         j          
       clear ans         ed11        ed51        k           yp          
       clear co          ed2         ed6         lats        yp2         
       clear counter     ed21        emat        lons        
       clear dist        ed3         fig1        phase       
       clear distance    ed31        fig2        rc          
       clear distmat     ed4                      
       clear dot         ed41        i           temp        
       
    %end;
	
 % end and get out of program
