Why does the REGEXPREP function return incorrect results in MATLAB 7.0 (R14)?
조회 수: 4 (최근 30일)
이전 댓글 표시
MathWorks Support Team
2009년 6월 27일
편집: MathWorks Support Team
2020년 11월 6일
In MATLAB 7.0 (R14), the REGEXPREP function (and several other REGEXP functions) on some installations returns incorrect results. For example:
str = 'My flowers may bloom in May';
pat = 'm(\w*)y';
regexprep(str, pat, 'April')
The correct output is:\n
My flowers April bloom in May
However, on my computer, I observe:\n
My flowers may bloom in May
채택된 답변
MathWorks Support Team
2020년 11월 19일
편집: MathWorks Support Team
2020년 11월 6일
This bug has been fixed for Release 14 SP1 (R14SP1). For previous releases, please read below for any possible workarounds:
We have verified there is a bug in MATLAB 7.0 (R14) in the way that MATLAB handles an environmental variable on the system PATH called ICU_DATA.
For information about how to resolve this issue, see the following URL:
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!