1function sourceidx = getIndexSourceStation(self)
2% INDEX = GETINDEXSOURCESTATION()
4% Copyright (c) 2012-2026, Imperial College London
6if isempty(self.sourceidx)
7%
if hasOpenClasses(self) % not ok
for fork mmt
8 self.sourceidx = find(cellisa(self.stations,
'Source'));
11sourceidx = self.sourceidx;