function [stat,post] = blkatan(path,prop,bstr,bint,bflt,parent,name)
%BLKATAN This block defines an output angle that is the arctangent of two inputs.
%

% Initial coding by A S Bozin, 6-10-97
% Copyright 1997-2000 The MathWorks, Inc.
% $Revision: 1.4 $ $Date: 2000/06/14 16:08:37 $

   stat = 0;			   		   % Error flag
   nInputs = bint(5);
   nOutputs = bint(6);
   %
   % Build mux and demux if necessary
   %
   channels = [nOutputs nOutputs];
   [post,rect] = blkio('port',channels,nOutputs,prop,path);
   %
   % Arctangent block
   %
   bh = add_block('built-in/Trigonometry',path,...
		  'ForegroundColor',prop.fgColor,...
		  'BackgroundColor',prop.bgColor,...
		  'Orientation',prop.orientation,...
		  'DropShadow',prop.border,...
		  'Position',rect,...
		  'Operator','atan2');
   %
   % Connect the current block with the mux and demux blocks (if any)
   %
   blkio('line',channels,nOutputs,post,parent,name);
   return					   % Last card of BLKATAN
