LINE Solver
MATLAB API documentation
Loading...
Searching...
No Matches
infer_lqn_optget.m
1function v = infer_lqn_optget(s, f, d)
2% INFER_LQN_OPTGET Return option field s.(f), or default d when absent/empty.
3%
4% V = INFER_LQN_OPTGET(S, F, D) returns S.(F) if S is a struct with a
5% non-empty field F, otherwise the default value D. Small helper shared by
6% the LQN parameter identification routines (see INFER_LQN).
7%
8% Copyright (c) 2012-2026, Imperial College London
9% All rights reserved.
10
11if isstruct(s) && isfield(s, f) && ~isempty(s.(f))
12 v = s.(f);
13else
14 v = d;
15end
16end
Definition Station.m:245