-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathairfoildataclass.m
30 lines (30 loc) · 1.24 KB
/
airfoildataclass.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
% Class to combine airfoil data
classdef airfoildataclass
properties
A double {mustBeReal, mustBeFinite}
te_ind(2,1) {mustBeReal, mustBeNonnegative, mustBeFinite, mustBeInteger}
u_length double {mustBeReal, mustBeNonnegative, mustBeFinite}
l_length double {mustBeReal, mustBeNonnegative, mustBeFinite}
le_length double {mustBeReal, mustBeNonnegative, mustBeFinite}
te_length double {mustBeReal, mustBeNonnegative, mustBeFinite}
cx_ind(2,1) {mustBeReal, mustBeNonnegative, mustBeFinite, mustBeInteger}
maxdist_ind(2,1) {mustBeReal, mustBeNonnegative, mustBeFinite, mustBeInteger}
domainext(2,1) {mustBeReal, mustBeNonnegative, mustBeFinite}
end
methods
function obj = airfoildataclass(val1,val2,val3,val4,...
val5,val6,val7,val8,val9)
if nargin == 9
obj.A = val1;
obj.te_ind = val2;
obj.u_length = val3;
obj.l_length = val4;
obj.le_length = val5;
obj.te_length = val6;
obj.cx_ind = val7;
obj.maxdist_ind = val8;
obj.domainext = val9;
end
end
end
end