1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
function LHS = Sensor_seqn (attribute,name)
## usage: LHS = Sensor_seqn (attribute,name)
##
## Write the LHS of a sensor equation
if strcmp(attribute,"external")
LHS = sprintf("MTTy_%s", name);
elseif strcmp(attribute,"internal")
LHS = sprintf("%% NOT USED MTT_y_%s", name);
else
error(sprintf("attribute ""%s"" not appropriate for a \
source"), attribute);
endif
endfunction
|
|
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
function LHS = Sensor_seqn (attribute,name)
## usage: LHS = Sensor_seqn (attribute,name)
##
## Write the LHS of a sensor equation
if strcmp(attribute,"external")
LHS = sprintf("MTTy_%s", name);
elseif strcmp(attribute,"internal")
LHS = sprintf("MTTy_%s", name);
else
error(sprintf("attribute ""%s"" not appropriate for a \
source"), attribute);
endif
endfunction
|