adds matlab snippets for testing