-
Notifications
You must be signed in to change notification settings - Fork 5
/
HGSload.m
33 lines (30 loc) · 888 Bytes
/
HGSload.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
29
30
31
32
function HGSload
%**************************************************************************
%
% HGSload
%
%**************************************************************************
%
% HGSload loads as global variable HGSdata
%
%**************************************************************************
% Inputs:
%--------------------------------------------------------------------------
%
% Outputs:
%--------------------------------------------------------------------------
% HGSdata is load in the global workspace
%
%**************************************************************************
% *HGS 2.1
% *By Caleb Fuster, Manel Soria and Arnau Miró
% *ESEIAAT UPC
global HGSdata;
if ~isstruct(HGSdata)
try
load('HGSdata')
catch
error('HGSdata.mat can not be find in the current paths.\n Use HGSdataDownload to create the data')
end
end
end