view assertIsMember.m @ 1092:47a72344db71 feature/dataspline

Bugfix in dataSpline(), reparameterize with parameter from 0 to 1 before using Curve.
author Martin Almquist <malmquist@stanford.edu>
date Fri, 05 Apr 2019 13:14:29 -0700
parents c596122374df
children
line wrap: on
line source

function assertIsMember(v, allowed)
    assert(ismember(v, allowed), 'Expected ''%s'' to be in the set %s', inputname(1), toString(allowed));
end