Skip to content

Commit ec4e9f0

Browse files
pradeebanCopilot
andauthored
Update concore_initval.m
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent b600bed commit ec4e9f0

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

concore_initval.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
% Safe numeric parsing (replaces unsafe eval)
44
clean_str = strtrim(simtime_val);
55
clean_str = regexprep(clean_str, '[\[\]]', '');
6+
clean_str = strrep(clean_str, ',', ' ');
67
result = sscanf(clean_str, '%f').';
78
% Guard against empty or invalid numeric input
89
if isempty(result)

0 commit comments

Comments
 (0)