spcharout.m fails in Matlab 6.5 due to regexprep
Brought to you by:
jonasalmeida,
sanojalmeida
In version 2.0 of XML4MAT, line 24 in spcharout.m fails
when running under Matlab 6.5 on line
y=eval(['[''',regexprep(x,'\#(\d+);',''',char($1),''',''']']);
due to a missing 'tokenize' option to the regexprep
function. Matlab 7 handles this fine due to changes
made to the function. A fix is to add the 'tokenize'
option. So, replacing the line in question with:
y=eval(['[''',regexprep(x,'\#(\d+);',''',char($1),''','tokenize'),''']']);
works fine in both matlab 6.5 and Matlab 7.
Harry Rostovtsev
rost0031@gmail.com