Obsidian uses Prism for syntax highlighting, and matlab
appears in the list of supported languages.
Nevertheless, the text is not coloured in Obsidian, for example:
The snippet I have used comes from a tutorialspoint compiler, and this is how I would expect its syntax to be highlighted.