-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.m
28 lines (28 loc) · 902 Bytes
/
setup.m
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 setup(volatile)
% Description:
% This function sets up the necessary paths for the execution of the stock
% market prediction project. It adds specific directories to the MATLAB
% path, enabling access to relevant datasets, libraries, and utilities
% required for the project.
%
% Usage:
% - setup() initializes the required paths.
% - If no argument is provided, the paths are saved for future sessions.
% - If the argument is set to 1, the paths are modified only for the
% current session.
%
if ispc
addpath("datasets\mat\")
addpath("libs")
addpath("libs\map")
else
addpath("datasets/mat/")
addpath("libs")
addpath("libs/map")
end
if (nargin > 0 && volatile==1)
disp("Path will be modified only for current session.");
else
savepath
disp("Path will be saved across different sessions.")
end