rocwoods 发表于 2009-9-16 00:48

MATLAB R2009b 的一些新功能

这两天装上了MATLAB 2009b,试验了下一些新功能。版本what's new里说,
sort (for long matrices)
bsxfun
mldivide (for sparse matrix input)
qr (for sparse matrix input)
filter
gamma
gammaln
erf
erfc
erfcx
erfinv
开始支持多线程。于是试了下sort,下面给出在09b下和09a下时间对比:
09b:
clear
a = rand(5000);
tic;b = sort(a);toc
Elapsed time is 1.335798 seconds.
09a:
clear
a = rand(5000);
tic;b = sort(a);toc
Elapsed time is 2.273001 seconds.
我的电脑酷睿T8100双核的,可见多线程的确自动起了作用,估计四核的或者更多核的会更快。
另外稍带试了下新增的返回部分参数功能:
[~,col] = size(rand(9,8))
col =
   8
以上初步尝试,其他新功能留待慢慢开发。
页: [1]
查看完整版本: MATLAB R2009b 的一些新功能