This commit is contained in:
Horldsence
2026-09-13 10:27:09 +08:00
parent b810ec7777
commit 82311a47cc
52 changed files with 2563 additions and 1278 deletions
+11
View File
@@ -0,0 +1,11 @@
function D = load_data(S, name)
%LOAD_DATA 读取 scripts/build_figure_data.py 预先写好的绘图数据并规范化文本字段。
path = fullfile(S.data_dir, [name '.mat']);
if ~isfile(path)
error('缺少绘图数据:%s(请先运行 scripts/build_figure_data.py --prepare)', path);
end
D = normalize_text(load(path));
if isfield(D, 'switch_') && ~isfield(D, 'switch_s')
D.switch_s = D.switch_;
end
end