Skip to content

Commit

Permalink
Matlab: fix issue parsing hyphen
Browse files Browse the repository at this point in the history
  • Loading branch information
rmcdermo committed Dec 13, 2024
1 parent 3db5268 commit 37bdac6
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 37bdac6

Please sign in to comment.