Skip to content

Commit 23df70f

Browse files
pradeebanCopilot
andauthored
Update concore_read.m
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 1966e9d commit 23df70f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

concore_read.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@
2828
% Safe numeric parsing (replaces unsafe eval)
2929
clean_str = strtrim(ins);
3030
clean_str = regexprep(clean_str, '[\[\]]', '');
31+
% Normalize comma delimiters to whitespace so sscanf parses all values
32+
clean_str = strrep(clean_str, ',', ' ');
3133
result = sscanf(clean_str, '%f').';
3234
concore.simtime = max(concore.simtime,result(1));
3335
result = result(2:length(result));

0 commit comments

Comments
 (0)