LINE Solver
MATLAB API documentation
Loading...
Searching...
No Matches
getSource.m
1function node = getSource(self)
2% NODE = GETSOURCE()
3
4% Copyright (c) 2012-2026, Imperial College London
5% All rights reserved.
6
7idx = self.getIndexSourceNode;
8if isempty(idx)
9 % line_warning(mfilename,'The model does not have a Source station.');
10 node = [];
11 return
12end
13node = self.nodes{idx};
14end