Files
3D_EDFM_SIM-X/gui_support/templates/load_case_template.m
T
2026-03-16 16:57:25 +08:00

26 lines
581 B
Matlab

function config = load_case_template(case_id)
%LOAD_CASE_TEMPLATE Load a predefined case template into unified config.
arguments
case_id
end
case_key = normalize_case_id(case_id);
switch case_key
case "case01"
config = load_case_template_case01();
otherwise
error('load_case_template:UnsupportedCase', ...
'Unsupported case template: %s', string(case_key));
end
end
function case_key = normalize_case_id(case_id)
if isnumeric(case_id)
case_key = "case" + compose("%02d", case_id);
else
case_key = lower(string(case_id));
end
end