START_THNN initializes paths and starts the Theta Neuron Training GUI Description: Script to initialize paths and start the Theta Neuron Training GUI. Syntax: START_THNN; Input Parameters: o None Output Parameters: o None, but note GUIHandle will now be in the local workspace. GUIHandle is a Handle to the GUI figure. The UserData of the GUI is a 1x2 cell array containing the GUI revision and the Handles structure. Example: >> Start_ThNN; >> Temp=get(GUIHandle,'UserData'); >> Revision=Temp{1}; >> Handles=Temp{2}; See also theta_neuron_network
0001 %START_THNN initializes paths and starts the Theta Neuron Training GUI 0002 % 0003 %Description: 0004 %Script to initialize paths and start the Theta Neuron Training GUI. 0005 % 0006 %Syntax: 0007 %START_THNN; 0008 % 0009 %Input Parameters: 0010 %o None 0011 % 0012 %Output Parameters: 0013 %o None, but note GUIHandle will now be in the local workspace. GUIHandle 0014 % is a Handle to the GUI figure. The UserData of the GUI is a 1x2 0015 % cell array containing the GUI revision and the Handles structure. 0016 % 0017 %Example: 0018 %>> Start_ThNN; 0019 %>> Temp=get(GUIHandle,'UserData'); 0020 %>> Revision=Temp{1}; 0021 %>> Handles=Temp{2}; 0022 % 0023 %See also theta_neuron_network 0024 0025 %Copyright (C) 2008 Sam McKennoch <Samuel.McKennoch@loria.fr> 0026 0027 0028 %Make sure starting directory is correct 0029 S=which('start_ThNN'); 0030 C=filesep; 0031 cd(S(1:(find(S==C,1,'last'))-1)); 0032 0033 %Add correct subdirectories to the path 0034 addpath(genpath(pwd)); 0035 rmpath(genpath([pwd, C, 'Results'])); 0036 rmpath(genpath([pwd, C, 'Datasets'])); 0037 clear S C; 0038 0039 %Start the GUI 0040 GUIHandle=ThNN_GUI;