Matlab simulation of a flexible beam modeled with gradient-deficient ANCF beam elements