Mercurial > repos > public > sbplib
view default_field.m @ 947:d1c13505182a feature/utux2D
Add missing newline at end of file
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Wed, 05 Dec 2018 16:02:45 +0100 |
parents | af9a63a4a5d0 |
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