Matlab main functions and commands