function vararg = mblkmdl(cmd,varargin)
%MBLKMDL Driver for the multidimensional linear interpolation block.
%

% Modified by Paul Barnard to interface with R12 table lookups in
% Simulink, 23 Dec 1999
% Initial coding by A S Bozin, 5-27-98
% Copyright 1997-2000 The MathWorks, Inc.
% $Revision: 1.7 $ $Date: 2000/06/16 21:04:49 $

   switch (cmd)
      case 'mask'
	 cb = varargin{1};
	 vararg = cell(1,1);
	 mask = cell(1,10);			   % Initialize the mask visibilities
	 mask(:) = {'on'};
	 ninp = sscanf(get_param(cb,'NINP'),'%d'); % Get the number of inputs
	 if (ninp < 8)				   % Quick return
	    ind = ninp+2:9;
	    mask(ind) = {'off'};
	 end
	 set_param(cb,'MaskVisibilities',mask);

      otherwise
   end
   return					   % Last card of MBLKMDL
