Mercurial > repos > public > sbplib
view default_field.m @ 1330:855871e0b852 feature/D2_boundary_opt
Add size checks to the operators
author | Vidar Stiernström <vidar.stiernstrom@it.uu.se> |
---|---|
date | Thu, 17 Feb 2022 18:55:11 +0100 |
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