1function el = infer_lqn_findbyname(container, name)
2% INFER_LQN_FINDBYNAME Locate an LQN element by name in a cell container.
4% EL = INFER_LQN_FINDBYNAME(CONTAINER, NAME) returns
the first element of
5%
the cell array CONTAINER whose .name equals NAME, or []
if none matches.
6% Used by
the LQN parameter identification helpers to resolve activities and
7% tasks referenced by name in a parameter specification (see INFER_LQN).
9% Copyright (c) 2012-2026, Imperial College London
13for k = 1:numel(container)
14 if strcmp(container{k}.name, name)