mocking integration for matlab