-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstart.m
More file actions
28 lines (22 loc) · 695 Bytes
/
start.m
File metadata and controls
28 lines (22 loc) · 695 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
function start()
% 快速启动脚本 - 一键启动信号处理工具
fprintf('\n========================================\n');
fprintf('Signal Processing Tool\n');
fprintf('========================================\n\n');
% 获取当前目录
current_dir = pwd;
script_dir = fileparts(mfilename('fullpath'));
% 切换到项目根目录
cd(script_dir);
try
% 启动主界面
fprintf('正在启动主界面...\n\n');
main_launcher();
catch ME
fprintf('启动失败: %s\n', ME.message);
cd(current_dir);
rethrow(ME);
end
% 返回原目录
cd(current_dir);
end