Skip to content

Commit 37bdac6

Browse files
committed
Matlab: fix issue parsing hyphen
1 parent 3db5268 commit 37bdac6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Utilities/Matlab/scripts/dvcread.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@
3838
if textline == -1
3939
ierror = 1;
4040
else
41-
[X ierror]=str2num(textline);
41+
% Remove hyphens before calling str2num
42+
cleanline = strrep(textline, '-', '');
43+
[X ierror]=str2num(cleanline);
4244
end
4345
end
4446
fclose(fid);

0 commit comments

Comments
 (0)