Mercurial > repos > public > sbplib
view default_field.m @ 1215:c7c2cbb465df feature/joingrids
Close branch feature/joingrids
author | Martin Almquist <malmquist@stanford.edu> |
---|---|
date | Wed, 13 Nov 2019 22:13:20 +0000 |
parents | d1c13505182a |
children |
line wrap: on
line source
function default_field(s, f, val) if isfield(s,f) && ~isempty(s.(f)) return end s.(f) = val; assignin('caller', inputname(1),s); end