-
Notifications
You must be signed in to change notification settings - Fork 13
/
loadVariants.m
45 lines (38 loc) · 1.4 KB
/
loadVariants.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
33
34
35
36
37
38
39
40
41
42
43
44
45
% Filename: loadVariants.m
% Description: Loads variants the hyperloop_arc model
% some change
% Copyright 2013 - 2014 The MathWorks, Inc
%% Chassis
disp('Loading Chassis Variant')
if checkToolbox({'Simulink 3D Animation';'SimMechanics';'Simscape'})
disp(' Loading Alpha_sm_s3D')
VAR_Chassis = varChassis.Alpha_sm_s3D;
elseif checkToolbox({'SimMechanics';'Simscape'})
disp(' Alpha_sm_s3D not supported (missing Simulink 3D Animation license). Loading Alpha_sm')
VAR_Chassis = varChassis.Alpha_sm;
else
disp(' Alpha_sm_s3D not supported (missing Simulink 3D Animation license)')
disp(' Alpha_sm not supported (missing SimMechanics and/or Simscape license). Loading Alpha')
VAR_Chassis = varChassis.Alpha;
end
%% Compressor
disp('Loading Compressor Variant')
VAR_COMP = varComp.Alpha;
disp(' Loading Alpha')
%% Power / Energy Storage
disp('Loading Power Variant')
VAR_POWER = varPower.Alpha;
disp(' Loading Alpha')
%% Propulsion
disp('Loading Propulsion Variant')
VAR_PROP = varProp.Alpha;
disp(' Loading Alpha')
%% Tube
disp('Loading Tube Variant')
if checkToolbox({'Stateflow'})
VAR_TUBE = varTube.Alpha_sf;
disp(' Loading Alpha_sf')
else
VAR_TUBE = varTube.Alpha;
disp(' Alpha_sf (missing Stateflow license). Loading Alpha')
end