基本信息
源码名称:编写快速的MATLAB代码.pdf
源码大小:0.28M
文件格式:.pdf
开发语言:MATLAB
更新时间:2020-05-17
×
请留下您的邮箱,我们将在2小时内将文件发到您的邮箱
源码介绍
Writing Fast MATLAB Code Pascal Getreuer, June 2006
Contents 1 The Profiler 2 2 Array Preallocation 3 3 Vectorization 5 3.1 Vectorized Computations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 3.2 Vectorized Logic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 4 Inlining Simple Functions 10 5 Numerical Integration 12 5.1 One-Dimensional Integration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 5.2 Multidimensional Integration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 6 Signal Processing 16 7 Referencing Operations 19 8 Miscellaneous Tricks 22 8.1 Clip a value without using if statements . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 8.2 Convert any array into a column vector . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 8.3 Find the min/max of a matrix or N-d array . . . . . . . . . . . . . . . . . . . . . . . . . 22 8.4 Vector Normalization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 8.5 Flood filling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 8.6 Vectorized use of set on GUI objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 9 Further Reading 24