ENABLE_NETWORK_PARAMETERS enables or disables the GUI network parameters Description: Function to enable or disable the GUI network parameters. During training these parameters are disable to maintain consistency between the display and the simulation. Syntax: ENABLE_NETWORK_PARAMETERS(Handles,State); Input Parameters: o Handles: A structure containing the handles to all the GUI objects, as generated in ThNN_GUI. o State: A string with possible values 'on' and 'off'. Output Parameters: o None Example: >> %Assumes valid simulation training results are loaded below >> GUIHandle=start_ThNN; >> Temp=get(GUIHandle,'UserData'); >> Handles=Temp{2}; >> enable_network_parameters(Handles,'off'); See also theta_neuron_network
0001 function enable_network_parameters(Handles,State) 0002 %ENABLE_NETWORK_PARAMETERS enables or disables the GUI network parameters 0003 % 0004 %Description: 0005 %Function to enable or disable the GUI network parameters. During training 0006 %these parameters are disable to maintain consistency between the display 0007 %and the simulation. 0008 % 0009 %Syntax: 0010 %ENABLE_NETWORK_PARAMETERS(Handles,State); 0011 % 0012 %Input Parameters: 0013 %o Handles: A structure containing the handles to all the GUI objects, 0014 % as generated in ThNN_GUI. 0015 %o State: A string with possible values 'on' and 'off'. 0016 % 0017 %Output Parameters: 0018 %o None 0019 % 0020 %Example: 0021 %>> %Assumes valid simulation training results are loaded below 0022 %>> GUIHandle=start_ThNN; 0023 %>> Temp=get(GUIHandle,'UserData'); 0024 %>> Handles=Temp{2}; 0025 %>> enable_network_parameters(Handles,'off'); 0026 % 0027 %See also theta_neuron_network 0028 0029 %Copyright (C) 2008 Sam McKennoch <Samuel.McKennoch@loria.fr> 0030 0031 0032 set(Handles.Alpha,'Enable',State); 0033 set(Handles.Hidden_Inot,'Enable',State); 0034 set(Handles.Output_Inot,'Enable',State); 0035 set(Handles.Reference_Time,'Enable',State); 0036 set(Handles.Num_Hidden_Neurons,'Enable',State); 0037 set(Handles.Initial_Weight,'Enable',State); 0038 set(Handles.Initialize_Weight_Type,'Enable',State); 0039 set(Handles.Initial_Tau,'Enable',State); 0040 set(Handles.Initialize_Tau_Type,'Enable',State);