function Vname = getVname(state) if isfield(state, "V") Vname = "V" ; else Vname = "v" ; end end