Mercurial > repos > public > sbplib
view default_field.m @ 1187:5aa3049a4212 feature/rv
Allow for time dependent data when construcing the ODE RHS
author | Vidar Stiernström <vidar.stiernstrom@it.uu.se> |
---|---|
date | Mon, 08 Jul 2019 14:48:56 +0200 |
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