save a .mat file
The file format is triggered by the extension. To save files with a MAT format, simply use a filename with a .mat ending. The save function also supports ASCII output. This is a very limited form of the save command-it can only save numeric arrays that are 2-dimensional.