Skip to content

Commit

Permalink
Merge pull request #13884 from rmcdermo/master
Browse files Browse the repository at this point in the history
Matlab: fix issue parsing hyphen
  • Loading branch information
rmcdermo authored Dec 13, 2024
2 parents 31dbdb0 + 37bdac6 commit 19e3ab8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Utilities/Matlab/scripts/dvcread.m
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@
if textline == -1
ierror = 1;
else
[X ierror]=str2num(textline);
% Remove hyphens before calling str2num
cleanline = strrep(textline, '-', '');
[X ierror]=str2num(cleanline);
end
end
fclose(fid);
Expand Down

0 comments on commit 19e3ab8

Please sign in to comment.