参考,转自
http://developer.51cto.com/art/201104/255128_all.htm
http://developer.51cto.com/art/201104/255128_1.htm
1 M-Lint
code analyzer preferences
set in the file--preferences--....
2 profiler
之前的blog里面有专门解释
3 用计时器
tic
toc
也在之前 时间 计时 部分的blog有提到过
4 预分配矩阵
相当于对以矩阵组合的变量进行提前定义,设置其为多少乘多少的矩阵
通常用zeros函数
5 向量化
即设置数组,变量
6 内嵌function来运算