www.gusucode.com > MATLAB雷达工具箱 > MATLAB雷达工具箱/MATLAB雷达工具箱/dbtlinkR1-3/adaptiveBFParamcb.m

    %adaptiveBFParamcb
%
% This is a callback function for the taperType parameter in the 
% adaptivebeamforming block.
% Disable the parameter fields for taperParam and nbar if taperType is 
% chosen to 'uniform'
% Disable the parameter field for nbar if taperType is chosen to 'cheby'

tempCell=get_param(gcb,'MaskValues');
taperType=tempCell{4};
set_param(gcb,'MaskEnables',{'on','on','on','on','on','on'});

switch(taperType)
   
   case 'uniform'
   		set_param(gcb,'MaskVisibilities',{'on','on','on','on','off','off'});
	case 'cheby'
   		set_param(gcb,'MaskVisibilities',{'on','on','on','on','on','off'});
	case 'taylor'
   		set_param(gcb,'MaskVisibilities',{'on','on','on','on','on','on'});      
         
end %switch