www.gusucode.com > sigtools 工具箱matlab源码程序 > sigtools/@fdadesignpanel/@abstractfreqwbw/setGUIvals.m

    function setGUIvals(h, eventData) %#ok
%SETGUIVALS

%   Author(s): J. Schickler
%   Copyright 1988-2010 The MathWorks, Inc.

hfreqspecs = findhandle(h, whichframes(h));

if ~isempty(hfreqspecs),

    [strs, lbls] = setstrs(h);
    nonbwlbl = getnonbwlabel(h);

    % Cache the fs so that the set on Units does not overwrite it.
    set(hfreqspecs, ...
        'Units', get(h,'FreqUnits'), ...
        'Fs', get(h, 'Fs'), ...
        'Values', get(h, strs), ...
        'Labels', lbls, ...
        'nonbwlabel', nonbwlbl, ...
        'nonBW', get(h, nonbwlbl), ...
        'BandWidth', get(h, 'BandWidth'));
    
    switch lower(h.transitionmode)
        case {'bandwidth', 'none'}
            set(hfreqspecs, 'TransitionMode', h.transitionmode);
        otherwise
            set(hfreqspecs, 'TransitionMode', 'nonbw');
    end
end

% [EOF]