from rnnsim.zip by Hossam Abdelbaki
The program can be used in training and testing the Random Neural Network(RNN) models.

rnn3_gui()
%   File Name      : rnn3_gui.m
%   Purpose        : Main program window
%   Author         : Hossam E. Mostafa Abdelbaki, School of Computer Science, 
%                    University of Centeral Florida (UCF). 
%   Release        : ver. 1.0.
%   Date           : October 1998.
%
%       RNNSIM is a software program available to the user without any 
%   license or royalty fees. Permission is hereby granted to use, copy, 
%   modify, and distribute this software for any purpose. The Author 
%   and UCF give no warranty, express, implied, or statuary for the 
%   software including, without limitation, waranty of merchantibility 
%   and warranty of fitness for a particular purpose. The software 
%   provided hereunder is on an "as is"  basis, and the Author and the 
%   UCF has no obligation to provide maintenance, support, updates, 
%   enhancements, or modifications. 
%
%       RNNSIM  is available for any platform (UNIX, PCWIN, MACHITOCH). 
%   It runs under MATLAB ver. 5.0 or highrer. 
%
%       User feedback, bugs, or software and manual suggestions can 
%   be sent via electronic mail to :   ahossam@cs.ucf.edu

function fig = rnn3_gui()
% This is the machine-generated representation of a Handle Graphics object
% and its children.  Note that handle values may change when these objects
% are re-created. This may cause problems with any callbacks written to
% depend on the value of the handle at the time the object was saved.
%
% To reopen this object, just type the name of the M-file at the MATLAB
% prompt. The M-file and its associated MAT-file must be on your path.

load rnn3_gui

h0 = figure('Units','normalized', ...
	'Color',[0.8 0.8 0.8], ...
	'Colormap',mat0, ...
	'DeleteFcn','close all', ...
	'MenuBar','none', ...
	'Name','Random Neural Network Simulator ver. 1.0', ...
	'NumberTitle','off', ...
	'PointerShapeCData',mat1, ...
	'Position',mat2, ...
	'Resize','off', ...
	'Tag','RnnFig');
h1 = uimenu('Parent',h0, ...
   'Label','Edit', ...
	'Tag','EditMnu');
h2 = uimenu('Parent',h1, ...
	'Callback','excute edit_net', ...
   'Label','Net. File', ...
   'Enable','off', ...   
   'Tag','EditNetFileMnu');
h2 = uimenu('Parent',h1, ...
	'Callback','excute edit_train', ...
   'Label','Train File', ...
   'Enable','off', ...   
   'Tag','EditTrainFileMnu');
h2 = uimenu('Parent',h1, ...
	'Callback','excute edit_test', ...
   'Label','Test File', ...
   'Enable','off', ...   
   'Tag','EditTestFileMnu');
h1 = uimenu('Parent',h0, ...
   'Label','Train', ...
	'Tag','Train1Mnu');
h2 = uimenu('Parent',h1, ...
	'Callback','excute train', ...
   'Label','Train Net.', ...
   'Enable','off', ...
   'Tag','TrainMnu');
h2 = uimenu('Parent',h1, ...
	'Callback','excute stop', ...
   'Label','Stop', ...
   'Enable','off', ...   
   'Tag','StopMnu');
h2 = uimenu('Parent',h1, ...
	'Callback','excute resume', ...   
   'Label','Resume', ...
   'Enable','off', ...   
   'Tag','ResumeMnu');
h1 = uimenu('Parent',h0, ...
	'Label','Test', ...
	'Tag','Test1Mnu');
h2 = uimenu('Parent',h1, ...
	'Callback','excute test', ...   
   'Label','Test Net.', ...
   'Enable','off', ...   
   'Tag','TestMnu');
h2 = uimenu('Parent',h1, ...
	'Callback','excute show_log', ...   
   'Label','Show Log', ...
   'Enable','off', ...   
   'Tag','ShowLogMnu');
h2 = uimenu('Parent',h1, ...
	'Callback','excute plot_error', ...   
   'Label','Plot Error', ...
   'Enable','off', ...   
   'Tag','PlotErrorMnu');
h1 = uimenu('Parent',h0, ...
	'Label','Accept', ...
	'Tag','Accept1Mnu');
h2 = uimenu('Parent',h1, ...
	'Callback','excute accept', ...   
   'Label','Accept Par.', ...
   'Enable','off', ...   
   'Tag','AcceptMnu');
h2 = uimenu('Parent',h1, ...
	'Callback','excute reset_par', ...   
   'Label','Reset Par.', ...
	'Tag','ResetMnu');
h2 = uimenu('Parent',h1, ...
	'Callback','excute draw_net', ...
   'Label','Draw Net.', ...
   'Enable','off', ...   
   'Tag','DrawNetMnu');
h1 = uimenu('Parent',h0, ...
	'Label','Help', ...
	'Tag','Help1Mnu');
h2 = uimenu('Parent',h1, ...
	'Callback','excute help_nn', ...   
   'Label','Help', ...
	'Tag','HelpMnu');
h2 = uimenu('Parent',h1, ...
	'Callback','excute demo_nn', ...   
   'Label','Demo', ...
	'Tag','DemoMnu');
h2 = uimenu('Parent',h1, ...
	'Callback','tutor_nn', ...   
   'Label','RNN Tutorial', ...
	'Tag','RNNTutorialMnu');
h2 = uimenu('Parent',h1, ...
	'Callback','excute about_nn', ...   
   'Label','About', ...
	'Tag','AboutMnu');
h1 = uimenu('Parent',h0, ...
	'Label','Quit', ...
	'Tag','Quit1Mnu');
h2 = uimenu('Parent',h1, ...
	'Callback','excute quit_nn', ...
	'Label','Quit Simulator', ...
	'Tag','RnnFigQuitMnu');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
	'ListboxTop',0, ...
	'Position',mat3, ...
	'Style','frame', ...
	'Tag','Frame2');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'BackgroundColor',[1 1 0.501960784313725], ...
	'ListboxTop',0, ...
	'Position',mat4, ...
	'Style','frame', ...
	'Tag','Frame3');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'BackgroundColor',[1 1 1], ...
	'Callback','excute net_file', ...
	'ListboxTop',0, ...
	'Position',[0.259786 0.835381 0.163701 0.044226], ...
	'Style','edit', ...
	'Tag','NetFileNameEdT');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'FontUnits','normalized', ...
	'Callback','excute edit_net', ...
	'FontSize',0.392157, ...
	'ListboxTop',0, ...
	'Position',[0.256228 0.781327 0.16726 0.0565111], ...
	'String','Edit', ...
	'Tag','EditNetFilePB');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
	'ListboxTop',0, ...
	'Position',[0.275801 0.886978 0.135231 0.031941], ...
	'String','Net File Name', ...
	'Style','text', ...
	'Tag','StaticText4');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'BackgroundColor',[1 1 1], ...
	'Callback','excute trn_file', ...
	'Enable','off', ...
	'ListboxTop',0, ...
	'Position',[0.263345 0.587224 0.169039 0.04914], ...
	'Style','edit', ...
	'Tag','TrainFileNameEdT');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'Callback','excute edit_train', ...
	'Enable','off', ...
	'FontSize',10, ...
	'ListboxTop',0, ...
	'Position',[0.263345 0.523342 0.169039 0.0565111], ...
	'String','Edit', ...
	'Tag','EditTrainFilePB');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
	'ListboxTop',0, ...
	'Position',[0.282918 0.412776 0.135231 0.034398], ...
	'String','Test File Name', ...
	'Style','text', ...
	'Tag','StaticText9');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'BackgroundColor',[1 1 1], ...
	'Callback','excute tst_file', ...
	'Enable','off', ...
	'ListboxTop',0, ...
	'Position',[0.268683 0.361179 0.169039 0.046683], ...
	'Style','edit', ...
	'Tag','TestFileNameEdT');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'BackgroundColor',[1 1 1], ...
	'Callback','excute log_file', ...
	'Enable','off', ...
	'ListboxTop',0, ...
	'Position',[0.464413 0.363636 0.169039 0.046683], ...
	'Style','edit', ...
	'Tag','LogFileNameEdT');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'Callback','excute edit_test', ...
	'Enable','off', ...
	'FontSize',10, ...
	'ListboxTop',0, ...
	'Position',[0.268683 0.299754 0.170819 0.0589681], ...
	'String','Edit', ...
	'Tag','EditTestFilePB');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'BackgroundColor',[0.752941 0.752941 0.752941], ...
	'ListboxTop',0, ...
	'Position',[0.478648 0.412776 0.133452 0.039312], ...
	'String','Log File Name', ...
	'Style','text', ...
	'Tag','StaticText10');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'Callback','excute show_log', ...
	'Enable','off', ...
	'FontSize',10, ...
	'ListboxTop',0, ...
	'Position',[0.469751 0.302211 0.163701 0.0589681], ...
	'String','Show', ...
	'Tag','ShowLogPB');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'BackgroundColor',[0.752941 0.752941 0.752941], ...
	'ListboxTop',0, ...
	'Position',[0.275801 0.636364 0.135231 0.036855], ...
	'String','Train File Name', ...
	'Style','text', ...
	'Tag','StaticText6');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'BackgroundColor',[0.752941 0.752941 0.752941], ...
	'ListboxTop',0, ...
	'Position',[0.450178 0.635468 0.183274 0.044335], ...
	'String','Weights File Name', ...
	'Style','text', ...
	'Tag','StaticText7');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'BackgroundColor',[1 1 1], ...
	'Callback','excute wts_file', ...
	'Enable','off', ...
	'ListboxTop',0, ...
	'Position',[0.455516 0.584767 0.172598 0.044226], ...
	'Style','edit', ...
	'Tag','WeightsFileNameEdT');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'Callback','excute test', ...
	'Enable','off', ...
	'ListboxTop',0, ...
	'Position',[0.6625 0.371158 0.139286 0.0567376], ...
	'String','Test', ...
	'Tag','TestPB');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'Callback','excute train', ...
	'Enable','off', ...
	'ListboxTop',0, ...
	'Position',[0.658363 0.593596 0.13879 0.0566502], ...
	'String','Train', ...
	'Tag','TrainPB');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'Callback','excute stop', ...
	'Enable','off', ...
	'ListboxTop',0, ...
	'Position',[0.660142 0.524631 0.13879 0.0566502], ...
	'String','Stop', ...
	'Tag','StopPB');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'BackgroundColor',[0.752941 0.752941 0.752941], ...
	'FontSize',18, ...
	'FontWeight','bold', ...
	'ForegroundColor',[1 0 0], ...
	'ListboxTop',0, ...
	'Position',[0.6387900355871886 0.6658476658476659 0.3540925266903914 0.3194103194103194], ...
	'String','Random Neural Network Simulator ver. 1.0', ...
	'Style','text', ...
	'Tag','StaticText1');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'Callback','excute demo_nn', ...
	'ListboxTop',0, ...
	'Position',[0.841071 0.212264 0.148214 0.0589623], ...
	'String','Demo', ...
	'Tag','DemoPB');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'Callback','excute help_nn', ...
	'ListboxTop',0, ...
	'Position',[0.678571 0.212264 0.146429 0.0589623], ...
	'String','Help', ...
	'Tag','HelpPB');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'Callback','excute draw_net', ...
	'Enable','off', ...
	'ListboxTop',0, ...
	'Position',[0.450178 0.781327 0.158363 0.0565111], ...
	'String','Draw Net', ...
	'Tag','DrawNetPB');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'Callback','excute resume', ...
	'Enable','off', ...
	'ListboxTop',0, ...
	'Position',[0.841637 0.517241 0.13879 0.0566502], ...
	'String','Resume', ...
	'Tag','ResumePB');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'Callback','excute plot_error', ...
	'Enable','off', ...
	'ListboxTop',0, ...
	'Position',[0.845196 0.598522 0.140569 0.0541872], ...
	'String','Plot Error', ...
	'Tag','PlotErrorPB');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'Callback','excute about_nn', ...
	'ListboxTop',0, ...
	'Position',[0.678571 0.132075 0.148214 0.0542453], ...
	'String','About', ...
	'Tag','AboutPB');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
	'FontSize',14, ...
	'ListboxTop',0, ...
	'Position',[0.359431 0.9385750000000001 0.224199 0.0515971], ...
	'String','Network Data', ...
	'Style','text', ...
	'Tag','StaticText3');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'BackgroundColor',[0.749019607843137 0.749019607843137 0.749019607843137], ...
	'FontSize',14, ...
	'ListboxTop',0, ...
	'Position',[0.359431 0.700246 0.25089 0.0540541], ...
	'String','Training Data', ...
	'Style','text', ...
	'Tag','StaticText5');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'BackgroundColor',[0.749019607843137 0.749019607843137 0.749019607843137], ...
	'FontSize',14, ...
	'ListboxTop',0, ...
	'Position',[0.379004 0.457002 0.202847 0.0565111], ...
	'String','Testing Data', ...
	'Style','text', ...
	'Tag','StaticText8');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'Callback','excute tutor_nn', ...
	'ListboxTop',0, ...
	'Position',[0.841071 0.129717 0.148214 0.0589623], ...
	'String','RNN Tutorial', ...
	'Tag','RNNTutorialPB');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'BackgroundColor',[0 0 1], ...
	'ListboxTop',0, ...
	'Position',[0 0.287469 0.998221 0.002457], ...
	'Style','text', ...
	'Tag','StaticText13');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'BackgroundColor',[0 0 1], ...
	'ListboxTop',0, ...
	'Position',[0.24911 0.506143 0.7491100000000001 0.002457], ...
	'Style','text', ...
	'Tag','StaticText12');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'BackgroundColor',[0 0 1], ...
	'ListboxTop',0, ...
	'Position',[0.243772 0.756158 0.3879 0.00246305], ...
	'Style','text', ...
	'Tag','StaticText11');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'Callback','excute accept', ...
	'Enable','off', ...
	'ListboxTop',0, ...
	'Position',[0.8380782918149465 0.4127764127764128 0.1441281138790035 0.06142506142506143], ...
	'String','Accept', ...
	'Tag','AcceptPB');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'Callback','excute reset_par', ...
	'ListboxTop',0, ...
	'Position',[0.8380782918149465 0.3218673218673219 0.1441281138790035 0.06388206388206388], ...
	'String','Reset', ...
	'Tag','ResetPB');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
	'Callback','excute save_wts', ...
	'Enable','off', ...
	'ListboxTop',0, ...
	'Position',[0.446619 0.528256 0.202847 0.0515971], ...
	'String','Auto Save Weights', ...
	'Style','checkbox', ...
	'Tag','Checkbox1');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'BackgroundColor',[0 0 1], ...
	'ListboxTop',0, ...
	'Position',[0.822064 0.29064 0.00177936 0.216749], ...
	'Style','text', ...
	'Tag','Frame1');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'Callback','excute quit_nn', ...
	'FontSize',14, ...
	'ListboxTop',0, ...
	'Position',[0.717082 0.039312 0.24911 0.0638821], ...
	'String','Quit', ...
	'Tag','RnnFigQuitPB');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'BackgroundColor',[0 0 1], ...
	'ListboxTop',0, ...
	'Position',[0.243772 0.287469 0.00177936 0.702703], ...
	'Style','text', ...
	'Tag','StaticText19');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
	'HorizontalAlignment','left', ...
	'ListboxTop',0, ...
	'Position',[0.0177936 0.941032 0.126335 0.039312], ...
	'String','Input Nodes', ...
	'Style','text', ...
	'Tag','StaticText20');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
	'HorizontalAlignment','left', ...
	'ListboxTop',0, ...
	'Position',[0.0177936 0.886978 0.133452 0.041769], ...
	'String','Hidden Nodes', ...
	'Style','text', ...
	'Tag','StaticText20');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
	'HorizontalAlignment','left', ...
	'ListboxTop',0, ...
	'Position',[0.0177936 0.840295 0.126335 0.039312], ...
	'String','Output Nodes', ...
	'Style','text', ...
	'Tag','StaticText20');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
	'HorizontalAlignment','left', ...
	'ListboxTop',0, ...
	'Position',[0.0177936 0.7911550000000001 0.126335 0.039312], ...
	'String','Learning rate', ...
	'Style','text', ...
	'Tag','StaticText20');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
	'HorizontalAlignment','left', ...
	'ListboxTop',0, ...
	'Position',[0.0177936 0.7395580000000001 0.126335 0.039312], ...
	'String','Output Rate', ...
	'Style','text', ...
	'Tag','StaticText20');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
	'HorizontalAlignment','left', ...
	'ListboxTop',0, ...
	'Position',[0.0177936 0.692875 0.126335 0.039312], ...
	'String','Stop Iteration', ...
	'Style','text', ...
	'Tag','StaticText20');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
	'HorizontalAlignment','left', ...
	'ListboxTop',0, ...
	'Position',[0.0177936 0.641278 0.122776 0.039312], ...
	'String','Stop MSE', ...
	'Style','text', ...
	'Tag','StaticText20');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
	'HorizontalAlignment','left', ...
	'ListboxTop',0, ...
	'Position',[0.0177936 0.511057 0.190391 0.036855], ...
	'String','Initial Weights Range', ...
	'Style','text', ...
	'Tag','StaticText21');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
	'Callback',' excute Initial_Weights_Range_Sli', ...
	'Enable','off', ...
	'ListboxTop',0, ...
	'Position',[0.019573 0.457002 0.131673 0.046683], ...
	'Style','slider', ...
	'Tag','InitialWeightsRangeSli', ...
	'Value',0.1);
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'BackgroundColor',[1 1 1], ...
	'Enable','off', ...
	'ListboxTop',0, ...
	'Position',[0.144128 0.933661 0.0996441 0.044226], ...
	'Style','edit', ...
	'Tag','InputNodesEdT');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
	'HorizontalAlignment','left', ...
	'ListboxTop',0, ...
	'Position',[0.0177936 0.351351 0.120996 0.039312], ...
	'String','Loaded MSE', ...
	'Style','text', ...
	'Tag','StaticText20');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
	'HorizontalAlignment','left', ...
	'ListboxTop',0, ...
	'Position',[0.0177936 0.405405 0.120996 0.039312], ...
	'String','Loaded Iter.', ...
	'Style','text', ...
	'Tag','StaticText20');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'BackgroundColor',[1 1 1], ...
	'Callback','excute Initial_Weights_Range_EdT', ...
	'Enable','off', ...
	'ListboxTop',0, ...
	'Position',[0.160142 0.459459 0.08185050000000001 0.044226], ...
	'Style','edit', ...
	'Tag','InitialWeightsRangeEdT');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'BackgroundColor',[1 1 1], ...
	'Enable','off', ...
	'ListboxTop',0, ...
	'Position',[0.019573 0.297297 0.22242 0.044226], ...
	'Style','edit', ...
	'Tag','LoadedMSEEdT');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'BackgroundColor',[0.752941 0.752941 0.752941], ...
	'Callback','excute File_Pop', ...
	'ListboxTop',0, ...
	'Position',[0.44306 0.845209 0.176157 0.046683], ...
	'String',['prob1_net.m';'temp_net.m '], ...
	'Style','popupmenu', ...
	'Tag','FilePop', ...
	'Value',1);
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'BackgroundColor',[0 1 1], ...
	'Enable','off', ...
	'ListboxTop',0, ...
	'Position',[0.00533808 0.987715 0.996441 0.00982801], ...
	'Style','text', ...
	'Tag','StaticText22');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'BackgroundColor',[0 1 1], ...
	'ListboxTop',0, ...
	'Position',[-0.00177936 -0.004914 0.996441 0.014742], ...
	'Style','text', ...
	'Tag','StaticText22');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'BackgroundColor',[0 1 1], ...
	'ListboxTop',0, ...
	'Position',[0 0.00982801 0.00533808 0.987715], ...
	'Style','text', ...
	'Tag','StaticText23');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'BackgroundColor',[0 1 1], ...
	'ListboxTop',0, ...
	'Position',[0.992883 -0.002457 0.00533808 0.9901720000000001], ...
	'Style','text', ...
	'Tag','StaticText23');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'BackgroundColor',[1 1 1], ...
	'Callback','excute Hidden_Nodes', ...
	'Enable','off', ...
	'ListboxTop',0, ...
	'Position',[0.144128 0.882064 0.0996441 0.044226], ...
	'Style','edit', ...
	'Tag','HiddenNodesEdT');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'BackgroundColor',[1 1 1], ...
	'Enable','off', ...
	'ListboxTop',0, ...
	'Position',[0.144128 0.832924 0.0996441 0.044226], ...
	'Style','edit', ...
	'Tag','OutputNodesEdT');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'BackgroundColor',[1 1 1], ...
	'Callback','excute Learning_Rate', ...
	'Enable','off', ...
	'ListboxTop',0, ...
	'Position',[0.144128 0.781327 0.0996441 0.044226], ...
	'Style','edit', ...
	'Tag','LearningRateEdT');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'BackgroundColor',[1 1 1], ...
	'Callback','excute Output_Rate', ...
	'Enable','off', ...
	'ListboxTop',0, ...
	'Position',[0.144128 0.72973 0.0996441 0.044226], ...
	'Style','edit', ...
	'Tag','OutputRateEdT');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'BackgroundColor',[1 1 1], ...
	'Callback','excute Stop_Iteration', ...
	'Enable','off', ...
	'ListboxTop',0, ...
	'Position',[0.144128 0.685504 0.0996441 0.044226], ...
	'Style','edit', ...
	'Tag','StopIterationEdT');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'BackgroundColor',[1 1 1], ...
	'Callback','excute Stop_MSE', ...
	'Enable','off', ...
	'ListboxTop',0, ...
	'Position',[0.144128 0.633907 0.0996441 0.044226], ...
	'Style','edit', ...
	'Tag','StopMSEEdT');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'BackgroundColor',[1 1 1], ...
	'Enable','off', ...
	'ListboxTop',0, ...
	'Position',[0.142349 0.402948 0.0996441 0.044226], ...
	'Style','edit', ...
	'Tag','LoadedIterEdT');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
	'ListboxTop',0, ...
	'Position',[0.0142349 0.223587 0.137011 0.044226], ...
	'String','Start Iteration', ...
	'Style','text', ...
	'Tag','StaticText14');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'BackgroundColor',[1 1 1], ...
	'ForegroundColor',[0 0 1], ...
	'ListboxTop',0, ...
	'Position',[0.158363 0.223587 0.0765125 0.044226], ...
	'Style','text', ...
	'Tag','StartIterationStT');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
	'ListboxTop',0, ...
	'Position',[0.279359 0.22113 0.137011 0.044226], ...
	'String','Start MSE', ...
	'Style','text', ...
	'Tag','StaticText14');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'BackgroundColor',[1 1 1], ...
	'ForegroundColor',[0 0 1], ...
	'ListboxTop',0, ...
	'Position',[0.423488 0.223587 0.234875 0.046683], ...
	'Style','text', ...
	'Tag','StartMSEStT');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
	'ListboxTop',0, ...
	'Position',[0.0124555 0.164619 0.13879 0.044226], ...
	'String','Stop Iteration', ...
	'Style','text', ...
	'Tag','StaticText14');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
	'ListboxTop',0, ...
	'Position',[0.0142349 0.103194 0.137011 0.044226], ...
	'String','Current Iteration', ...
	'Style','text', ...
	'Tag','StaticText14');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'BackgroundColor',[1 1 1], ...
	'ForegroundColor',[0 0.5 1], ...
	'ListboxTop',0, ...
	'Position',[0.158363 0.164619 0.0765125 0.044226], ...
	'Style','text', ...
	'Tag','StopIteration1StT');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'BackgroundColor',[1 1 1], ...
	'ForegroundColor',[1 0 0], ...
	'ListboxTop',0, ...
	'Position',[0.158363 0.108108 0.0765125 0.044226], ...
	'Style','text', ...
	'Tag','CurrentIterationStT');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
	'ListboxTop',0, ...
	'Position',[0.279359 0.159705 0.137011 0.044226], ...
	'String','Stop MSE', ...
	'Style','text', ...
	'Tag','StaticText14');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
	'ListboxTop',0, ...
	'Position',[0.279359 0.09582309999999999 0.137011 0.044226], ...
	'String','Current MSE', ...
	'Style','text', ...
	'Tag','StaticText14');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'BackgroundColor',[1 1 1], ...
	'ForegroundColor',[1 0 0], ...
	'ListboxTop',0, ...
	'Position',[0.423488 0.100737 0.234875 0.044226], ...
	'Style','text', ...
	'Tag','CurrentMSEStT');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'BackgroundColor',[1 1 1], ...
	'ForegroundColor',[0 0.5 1], ...
	'ListboxTop',0, ...
	'Position',[0.423488 0.159705 0.234875 0.046683], ...
	'Style','text', ...
	'Tag','StopMSE1StT');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
	'ListboxTop',0, ...
	'Position',[0.0177936 0.044226 0.133452 0.044226], ...
	'String','Iteration Time', ...
	'Style','text', ...
	'Tag','StaticText14');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'BackgroundColor',[1 1 1], ...
	'ListboxTop',0, ...
	'Position',[0.158363 0.046683 0.0765125 0.044226], ...
	'Style','text', ...
	'Tag','IterationTimeStT');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
	'ListboxTop',0, ...
	'Position',[0.279359 0.039312 0.135231 0.044226], ...
	'String','Elapsed Time', ...
	'Style','text', ...
	'Tag','StaticText14');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'BackgroundColor',[1 1 1], ...
	'ListboxTop',0, ...
	'Position',[0.423488 0.039312 0.08718860000000001 0.044226], ...
	'Style','text', ...
	'Tag','ElapsedTimeStT');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'BackgroundColor',[1 1 1], ...
	'Enable','off', ...
	'ListboxTop',0, ...
	'Position',[0.261566 0.695332 0.0907473 0.02457], ...
	'Style','edit', ...
	'Tag','AutoSaveWeightsEdT');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
	'HorizontalAlignment','left', ...
	'ListboxTop',0, ...
	'Position',[0.0177936 0.58231 0.122776 0.039312], ...
	'String','Save Iter.', ...
	'Style','text', ...
	'Tag','StaticText20');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'BackgroundColor',[1 1 1], ...
	'Callback','excute Save_Iter', ...
	'Enable','off', ...
	'ListboxTop',0, ...
	'Position',[0.144128 0.577396 0.0996441 0.044226], ...
	'Style','edit', ...
	'Tag','SaveIterEdT');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'BackgroundColor',[0 0 1], ...
	'Enable','off', ...
	'ListboxTop',0, ...
	'Position',[0.6690390000000001 0.00982801 0.00177936 0.275184], ...
	'Style','text', ...
	'Tag','StaticText15');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'BackgroundColor',[0 0 1], ...
	'ListboxTop',0, ...
	'Position',[0.629893 0.6560200000000001 0.362989 0.002457], ...
	'Style','text', ...
	'Tag','StaticText16');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'BackgroundColor',[0 0 1], ...
	'ListboxTop',0, ...
	'Position',[0.6281138790035586 0.6609336609336609 0.001779359430604982 0.09582309582309581], ...
	'Style','text', ...
	'Tag','StaticText2');
if nargout > 0, fig = h0; end

global RnnFigHndl Checkbox1Hndl
global RnnFigallEdtsHndl RnnFigallBtnsHndl RnnFigallMnusHndl RnnFigallMainMnusHndl
global DrawNetPBHndl EditNetFilePBHndl EditTrainFilePBHndl  
global TrainPBHndl StopPBHndl PlotErrorPBHndl ResumePBHndl  
global EditTestFilePBHndl ShowLogPBHndl TestPBHndl AcceptPBHndl ResetPBHndl  
global HelpPBHndl DemoPBHndl AboutPBHndl RNNTutorialPBHndl RnnFigQuitPBHndl

global DrawNetMnuHndl EditNetFileMnuHndl EditTrainFileMnuHndl  
global TrainMnuHndl StopMnuHndl PlotErrorMnuHndl ResumeMnuHndl  
global EditTestFileMnuHndl ShowLogMnuHndl TestMnuHndl AcceptMnuHndl ResetMnuHndl  
global HelpMnuHndl DemoMnuHndl AboutMnuHndl RNNTutorialMnuHndl RnnFigQuitMnuHndl

global NetFileNameEdTHndl TrainFileNameEdTHndl WeightsFileNameEdTHndl 
global TestFileNameEdTHndl LogFileNameEdTHndl
global StartIterationStTHndl StopIterationEdTHndl;
global StartMSEStTHndl       StopMSEEdTHndl
global CurrentIterationStTHndl  CurrentMSEStTHndl
global IterationTimeStTHndl ElapsedTimeStTHndl 
global AutoSaveWeightsEdTHndl SaveIterEdTHndl
global InputNodesEdTHndl HiddenNodesEdTHndl OutputNodesEdTHndl
global LearningRateEdTHndl
global OutputRateEdTHndl  StopMSE1StTHndl
global InitialWeightsRangeEdTHndl LoadedIterEdTHndl
global LoadedMSEEdTHndl InitialWeightsRangeSliHndl
global FilePopHndl StopIteration1StTHndl 



%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

RnnFigHndl = findobj('Tag','RnnFig');
RnnFigallEdtsHndl = findobj(RnnFigHndl,'Type', 'uicontrol', 'Style', 'edit');
RnnFigallBtnsHndl = findobj(RnnFigHndl,'Type', 'uicontrol', 'Style', 'pushbutton');
RnnFigallMnusHndl = findobj(RnnFigHndl,'Type', 'uimenu');
Checkbox1Hndl = findobj('Tag','Checkbox1');
DrawNetPBHndl = findobj(RnnFigHndl, 'Type', 'uicontrol','Tag','DrawNetPB');
EditNetFilePBHndl = findobj(RnnFigHndl, 'style', 'pushbutton','Tag','EditNetFilePB');
EditTrainFilePBHndl = findobj(RnnFigHndl, 'Tag','EditTrainFilePB');
TrainPBHndl = findobj(RnnFigHndl,'String','Train','Tag','TrainPB');
StopPBHndl = findobj(RnnFigHndl,'Tag','StopPB'); 
PlotErrorPBHndl = findobj(RnnFigHndl,'Tag','PlotErrorPB');
ResumePBHndl = findobj(RnnFigHndl,'Tag','ResumePB'); 
EditTestFilePBHndl = findobj(RnnFigHndl,'Tag','EditTestFilePB');
ShowLogPBHndl = findobj(RnnFigHndl, 'Tag', 'ShowLogPB');
TestPBHndl = findobj(RnnFigHndl, 'Tag', 'TestPB');
AcceptPBHndl = findobj(RnnFigHndl, 'Tag', 'AcceptPB');
ResetPBHndl = findobj(RnnFigHndl, 'Tag', 'ResetPB');
HelpPBHndl = findobj(RnnFigHndl, 'Tag', 'HelpPB');
DemoPBHndl = findobj(RnnFigHndl, 'Tag', 'DemoPB');
AboutPBHndl = findobj(RnnFigHndl, 'Tag', 'AboutPB');
RNNTutorialPBHndl = findobj(RnnFigHndl, 'Tag', 'RNNTutorialPB');
RnnFigQuitPBHndl = findobj(RnnFigHndl, 'Tag', 'RnnFigQuitPB');

DrawNetMnuHndl = findobj(RnnFigHndl, 'Type', 'uimenu','Tag','DrawNetMnu');
EditNetFileMnuHndl = findobj(RnnFigHndl,'Tag','EditNetFileMnu');
EditTrainFileMnuHndl = findobj(RnnFigHndl,'Tag','EditTrainFileMnu');
TrainMnuHndl = findobj(RnnFigHndl,'Tag','TrainMnu');
StopMnuHndl = findobj(RnnFigHndl,'Tag','StopMnu'); 
PlotErrorMnuHndl = findobj(RnnFigHndl,'Tag','PlotErrorMnu');
ResumeMnuHndl = findobj(RnnFigHndl,'Tag','ResumeMnu'); 
EditTestFileMnuHndl = findobj(RnnFigHndl,'Tag','EditTestFileMnu');
ShowLogMnuHndl = findobj(RnnFigHndl, 'Tag', 'ShowLogMnu');
TestMnuHndl = findobj(RnnFigHndl, 'Tag', 'TestMnu');
AcceptMnuHndl = findobj(RnnFigHndl, 'Tag', 'AcceptMnu');
ResetMnuHndl = findobj(RnnFigHndl, 'Tag', 'ResetMnu');
HelpMnuHndl = findobj(RnnFigHndl, 'Tag', 'HelpMnu');
DemoMnuHndl = findobj(RnnFigHndl, 'Tag', 'DemoMnu');
AboutMnuHndl = findobj(RnnFigHndl, 'Tag', 'AboutMnu');
RNNTutorialMnuHndl = findobj(RnnFigHndl, 'Tag', 'RNNTutorialMnu');
RnnFigQuitMnuHndl = findobj(RnnFigHndl, 'Tag', 'RnnFigQuitMnu');

Mnu1Hndl = findobj(RnnFigHndl,'Type', 'uimenu', 'Tag', 'EditMnu');
Mnu2Hndl = findobj(RnnFigHndl,'Type', 'uimenu', 'Tag', 'Train1Mnu');
Mnu3Hndl = findobj(RnnFigHndl,'Type', 'uimenu', 'Tag', 'Test1Mnu');
Mnu4Hndl = findobj(RnnFigHndl,'Type', 'uimenu', 'Tag', 'Accept1Mnu');
Mnu5Hndl = findobj(RnnFigHndl,'Type', 'uimenu', 'Tag', 'Help1Mnu');
Mnu6Hndl = findobj(RnnFigHndl,'Type', 'uimenu', 'Tag', 'Quit1Mnu');


RnnFigallMainMnusHndl = [Mnu1Hndl Mnu2Hndl Mnu3Hndl Mnu4Hndl Mnu5Hndl Mnu6Hndl];

NetFileNameEdTHndl = findobj(RnnFigHndl,'Tag','NetFileNameEdT');
TrainFileNameEdTHndl = findobj(RnnFigHndl,'Tag','TrainFileNameEdT');
WeightsFileNameEdTHndl = findobj(RnnFigHndl,'Tag','WeightsFileNameEdT');
TestFileNameEdTHndl = findobj(RnnFigHndl,'Tag','TestFileNameEdT');
LogFileNameEdTHndl = findobj(RnnFigHndl,'Tag','LogFileNameEdT');
StartIterationStTHndl = findobj(RnnFigHndl,'Tag','StartIterationStT');
StopIterationEdTHndl = findobj(RnnFigHndl,'Tag','StopIterationEdT');
StartMSEStTHndl = findobj(RnnFigHndl,'Tag','StartMSEStT');
StopMSEEdTHndl = findobj(RnnFigHndl,'Tag','StopMSEEdT');
CurrentIterationStTHndl =  findobj(RnnFigHndl,'Tag','CurrentIterationStT');
CurrentMSEStTHndl =  findobj(RnnFigHndl,'Tag','CurrentMSEStT');
IterationTimeStTHndl =  findobj(RnnFigHndl,'Tag','IterationTimeStT');
ElapsedTimeStTHndl =  findobj(RnnFigHndl,'Tag','ElapsedTimeStT');
AutoSaveWeightsEdTHndl =  findobj(RnnFigHndl,'Tag','AutoSaveWeightsEdT');   
SaveIterEdTHndl=findobj(RnnFigHndl,'Tag','SaveIterEdT');
InputNodesEdTHndl = findobj(RnnFigHndl,'Tag','InputNodesEdT');
HiddenNodesEdTHndl = findobj(RnnFigHndl,'Tag','HiddenNodesEdT');
OutputNodesEdTHndl = findobj(RnnFigHndl,'Tag','OutputNodesEdT');
LearningRateEdTHndl = findobj(RnnFigHndl,'Tag','LearningRateEdT');
OutputRateEdTHndl = findobj(RnnFigHndl,'Tag','OutputRateEdT');
StopMSE1StTHndl = findobj(RnnFigHndl,'Tag','StopMSE1StT');
InitialWeightsRangeEdTHndl = findobj(RnnFigHndl,'Tag','InitialWeightsRangeEdT');
LoadedIterEdTHndl = findobj(RnnFigHndl,'Tag','LoadedIterEdT');
LoadedMSEEdTHndl = findobj(RnnFigHndl,'Tag','LoadedMSEEdT');
InitialWeightsRangeSliHndl = findobj(RnnFigHndl,'Tag','InitialWeightsRangeSli');
FilePopHndl = findobj(RnnFigHndl,'Tag','FilePop');
StopIteration1StTHndl = findobj(RnnFigHndl,'Tag','StopIteration1StT');

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
set(StartIterationStTHndl,'ForegroundColor',[0 0 1]);
set(StartMSEStTHndl,'ForegroundColor',[0 0 1]);

set(StopIteration1StTHndl,'ForegroundColor',[0 .5 1]);
set(StopMSE1StTHndl,'ForegroundColor',[0 .5 1]);

set(CurrentIterationStTHndl,'ForegroundColor',[1 0 0]);
set(CurrentMSEStTHndl,'ForegroundColor',[1 0 0]);




Contact us at files@mathworks.com