39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
infofile = fopen('mtt_info.txt', 'wt');
errorfile = fopen('mtt_error.txt', 'wt');
## Interpret data from the ibg representation
ibonds = $1_ibg;
bonds = ibonds.bonds;
[bonds,components,n_vector_bonds] = ibg2abg(name,bonds, \
infofile,errorfile)
## Write the acausal bond graph m-file
write_abg(name,bonds,components,n_vector_bonds);
EOF
# Set the units for the abg file
|
|
|
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
infofile = fopen('mtt_info.txt', 'wt');
errorfile = fopen('mtt_error.txt', 'wt');
## Interpret data from the ibg representation
ibonds = $1_ibg;
bonds = ibonds.bonds;
[bonds,components,n_vector_bonds] = ibg2abg(name,bonds, ...
infofile,errorfile)
## Write the acausal bond graph m-file
write_abg(name,bonds,components,n_vector_bonds);
EOF
# Set the units for the abg file
|