Commit a2f87bb3 by wzc-a

正则表达式增加一个逗号

parent 52a15097
......@@ -59,7 +59,7 @@ function matrix = parse_complex_matrix_from_output(output)
% 从命令输出中解析复数矩阵,自动检测矩阵大小
% 使用正则表达式匹配所有复数对
pattern = 'Complex\s*{\s*re:\s*([-\d.eE]+),\s*im:\s*([-\d.eE]+)\s*}';
pattern = 'Complex\s*{\s*re:\s*([-\d.eE]+),\s*im:\s*([-\d.eE]+),?\s*}';
[matches] = regexp(output, pattern, 'tokens');
if isempty(matches)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论