Skip to content

Commit 21b31a8

Browse files
authored
Merge pull request #13899 from rmcdermo/master
Matlab: ignore E- but replace - only
2 parents 460efda + 0f42367 commit 21b31a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Utilities/Matlab/scripts/dvcread.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
ierror = 1;
4040
else
4141
% Remove hyphens before calling str2num
42-
cleanline = strrep(textline, '-', '');
42+
cleanline = regexprep(textline, '(?<!E)-', ' ');
4343
[X ierror]=str2num(cleanline);
4444
end
4545
end

0 commit comments

Comments
 (0)