So nice, you are also motivated to look into the source code! :D
the class for the perspective is
org.eclipselabs.matclipse.mconsole.internal.ui.perspectives.MatlabWorkbench
and you can find the extension definitions in the plugin.xml of the
mconsole plugin
Actually, I have not written most of the code, but I can tell you that
many things are done in the MConsolePlugin class of
org.eclipselabs.matclipse.mconsole.
Chris