初版gui
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
function save_config_mat(config, file_path)
|
||||
%SAVE_CONFIG_MAT Save config struct to a MAT file.
|
||||
|
||||
arguments
|
||||
config (1,1) struct
|
||||
file_path (1,:) char
|
||||
end
|
||||
|
||||
folder_path = fileparts(file_path);
|
||||
if ~isempty(folder_path) && ~exist(folder_path, 'dir')
|
||||
mkdir(folder_path);
|
||||
end
|
||||
|
||||
save(file_path, 'config', '-mat');
|
||||
Reference in New Issue
Block a user