modelel_convertfromc
MODELEL_CONVERTFROMC - Convert the text string output of the executable file to a Matlab modelel
MODELELSTRUCT = MODELEL_CONVERTFROMC(DESC_STR)
Given a full, multi-line string, converts to Matlab structures.
Example input:
eol = sprintf('\n'); % end of line character
desc_str = ['0:' eol ... % first element
'type: spiketimelistel' eol ... % indicates type
'index: 1' eol ... % the element number
'modelel: <' eol ... % indicates that the variables associated with the modelel are coming next
'T: 0' eol ... % indicates that the variable 'T' has a value of 0
'dT: 0.0001' eol ... % indicates that the variable dT has a value of 0.0001
'name: cell1' eol ... % name is 'cell1'
'>' eol ... % end 'modelel'
'spiketimelistel: < ' eol ... % variables specific to class spiketimelistel coming next
'spiketimelist: 0.0001' eol ... % list of spike times
'>' eol ... % indicate end of subobject
eol ... % blank line ends it
'1: ' eol ...
'Type: spiketimelistel' eol ... % indicates type
'index: 1' eol ... % the element number
'modelel: <' eol ... % indicates that the variables associated with the modelel are coming next
'T: 0' eol ... % indicates that the variable 'T' has a value of 0
'dT: 0.0001' eol ... % indicates that the variable dT has a value of 0.0001
'name: cell1' eol ... % name is 'cell1'
'>' eol ... % end 'modelel'
'spiketimelistel: < ' eol ... % variables specific to class spiketimelistel coming next
'spiketimelist: 0.0002' eol ... % list of spike times
'>' eol ... % indicate end of subobject
eol ... % blank line ends it
];