0001 function display(ThNN)
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028 f=fields(ThNN);
0029 disp(' ');
0030 disp(['The Following Fields are Defined for ', inputname(1), ':']);
0031 disp(' ');
0032 for j=1:length(f)
0033 if max(strcmp(f{j},{'Weights','Delays','Neurons'}))
0034 disp([' ']);
0035 if strcmp(f{j},'Delays') && max(max(ThNN.(f{j})))==0
0036 disp([' ', f{j}, ' are not in use.']);
0037 disp(' ');
0038 else
0039 disp([' ', f{j}, ' = ']);
0040 if ischar(ThNN.(f{j}))
0041 disp([' ' ThNN.(f{j})]);
0042 else
0043 disp(ThNN.(f{j}));
0044 end
0045 end
0046 elseif strcmp(f{j},'SimulationMethod')
0047 disp([' ', f{j}, ' = ' ThNN.(f{j})]);
0048 elseif strcmp(f{j},'NIPS2007Gradient')
0049 disp([' ', f{j}, ' = ' num2str(ThNN.(f{j}))]);
0050 elseif strcmp(f{j},'TimeStep')
0051 disp([' ', f{j}, ' = ' num2str(ThNN.(f{j}))]);
0052 elseif strcmp(f{j},'ReferenceTime')
0053 if (ThNN.(f{j}))>0
0054 disp([' ', f{j}, ' = ' num2str(ThNN.(f{j}))]);
0055 else
0056 disp(' No reference input neuron is in use');
0057 end
0058 elseif strcmp(f{j},'InputNeurons')
0059 disp(' Structural Details (call update_structure to update):');
0060 if ~isempty(ThNN.(f{j}))
0061 disp([' Input Neuron Indices = ' num2str(ThNN.(f{j})')]);
0062 else
0063 disp(' There are no input neurons');
0064 end
0065 elseif strcmp(f{j},'OutputNeurons')
0066 if ~isempty(ThNN.(f{j}))
0067 disp([' Output Neuron Indices = ' num2str(ThNN.(f{j})')]);
0068 else
0069 disp(' There are no output neurons');
0070 end
0071 elseif strcmp(f{j},'RecursionFlag')
0072 if (ThNN.(f{j})~=0)
0073 disp(' There is one or more recursive loops');
0074 else
0075 disp(' There are no recursive loops');
0076 disp(' The fixed order of execution of neuron indices is:');
0077 disp([' ' num2str(ThNN.NeuronQueue')]);
0078 end
0079 end
0080 end
0081 disp(' ');