including matlab or python code is not possible but you have several options to automate processing chains:
- graph builder in the GUI (https://www.youtube.com/watch?v=J4I6K1jTCHk)
- graph processing tool (https://senbox.atlassian.net/wiki/spaces/SNAP/pages/70503590/Creating+a+GPF+Graph)
- snappy allows to call SNAP functions within a python routine (https://senbox.atlassian.net/wiki/spaces/SNAP/pages/19300362/How+to+use+the+SNAP+API+from+Python, and Snappy: Where to start?)