www.gusucode.com > sigtools 工具箱matlab源码程序 > sigtools/@siggui/@firceqripfreqspecs/Frequency_listener.m
function Frequency_listener(h, eventData) %FREQUENCY_LISTENER Listens to the Frequency property and updates as necessary % Author(s): Z. Mecklai % Copyright 1988-2010 The MathWorks, Inc. % Get the name of the frequency prperty Name = getdynamicname(h); % Get the current frequency Frequency = get(h, Name); % Get the handle to the edit box handles = get(h, 'Handles'); freq_eb_handle = handles.freq_handles(2); % Set the string to the new frequency set(freq_eb_handle, 'String', Frequency); send(h, 'UserModifiedSpecs', handle.EventData(h, 'UserModifiedSpecs')); % [EOF]