Matlab编译的重要性体现在多个方面:1. 提升运算速度;2. 保护特定算法;3. 生成独立的M文件。Matlab编译函数为mcc,其使用方式如下:MCC [-options] fun [fun2 ...] [mexfile1 ...] [mlibfile1 ...]。