Here are the beginnings of a matlab block:
[Matlab] Mimetypes=text/x-matlab Section=Scientific Variables=kate: indent-mode varindent; var-indent-indent-after ^( )*(for|else|if|while|switch|function); var-indent-unindent (end) Wildcards=*.m
More information about formatting options
Matlab Section
Here are the beginnings of a matlab block: