-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstartup.m
More file actions
30 lines (25 loc) · 925 Bytes
/
startup.m
File metadata and controls
30 lines (25 loc) · 925 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
29
30
function startup()
% startup.m
% Adds source directory to MATLAB path and checks requirements.
disp("🔧 Initialising Array WAH project...");
% Add source directory
src_path = fullfile(fileparts(mfilename('fullpath')), 'src');
if ~isfolder(src_path)
error('Could not find "src/" directory. Please check the project structure.');
end
addpath(genpath(src_path));
disp(['Added to path: ', src_path]);
% Check required toolboxes
required_toolboxes = {'Statistics and Machine Learning Toolbox', 'Signal Processing Toolbox'};
v = ver;
installed = {v.Name};
missing = setdiff(required_toolboxes, installed);
if ~isempty(missing)
fprintf('!! Missing required toolbox(es):\n');
for k = 1:length(missing)
fprintf(' - %s\n', missing{k});
end
error('!! Please install the missing toolbox(es) before running the demos.');
end
disp("🎯 Initialisation complete. You can now run the demo scripts.");
end