Mercurial > repos > public > sbplib
view default_field.m @ 658:1201eb16557e feature/grids
Allow the possibility to have discr as an input the an error function
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Sat, 11 Nov 2017 13:02:57 -0800 |
parents | 14bf01b7a068 |
children | 50cafc4b9e40 |
line wrap: on
line source
function default_field(s, f, val) if isfield(s,f) return end s.(f) = val; assignin('caller', inputname(1),s); end