updating matlab snippets