cantera/interfaces/matlab/toolbox/1D/@Stack/domainIndex.m

8 lines
186 B
Matlab

function n = domainIndex(s, name)
% DOMAININDEX - Index of the domain with a specified name.
if isa(name, 'double')
n = name;
else
n = stack_methods(s.stack_id, 109, name);
end