Menu

#1 spcharout.m fails in Matlab 6.5 due to regexprep

open
nobody
None
5
2005-05-23
2005-05-23
Anonymous
No

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

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.