声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

声振论坛 展示 基础理论 查看内容

MATLAB R2009b 的一些新功能

2011-3-3 00:40| 发布者: FtpAdmin| 查看: 827| 评论: 0|来自: 振动论坛

摘要: 这两天装上了MATLAB 2009b,试验了下一些新功能。版本what's new里说, sort (for long matrices) bsxfun mldivide (for sparse matrix input) qr (for sparse matrix input) filter gamma gammaln erf erf ...
这两天装上了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下时间对比:
  1. 09b:
  2. clear
  3. a = rand(5000);
  4. tic;b = sort(a);toc
  5. Elapsed time is 1.335798 seconds.
  6. 09a:
  7. clear
  8. a = rand(5000);
  9. tic;b = sort(a);toc
  10. Elapsed time is 2.273001 seconds.
复制代码
我的电脑酷睿T8100双核的,可见多线程的确自动起了作用,估计四核的或者更多核的会更快。
另外稍带试了下新增的返回部分参数功能:
  1. [~,col] = size(rand(9,8))
  2. col =
  3.      8
复制代码
以上初步尝试,其他新功能留待慢慢开发。

本文内容由 rocwoods 提供

最新评论

QQ|小黑屋|Archiver|手机版|联系我们|声振论坛

GMT+8, 2024-5-9 12:50 , Processed in 0.078273 second(s), 15 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

返回顶部