Practical ways to reduce overheads in MATLAB simulations


Click here to start

Table of contents

Title Slide

Objective

Summary

What is MATLAB?

Starting MATLAB

Advantages

Disadvantages

Memory consumption

Computational costs

Matrix arithmetic

Matrix arithmetic 2

Matrix arithmetic 3

Vectorising FOR Code

Vectorising Code

Vectorising IF code

Memory considerations

Preallocation commands

Preallocated code

Finite difference example

FD naive code

FD vector code

Finite element method

FE naive code

FE vectorised code

Profiler

Example profile

Example profile v

Example profile 2

Limitations

MEX files

MEX files 2

MEX files 3

MEX files 4

MEX example master

MEX example 1

MEX Example 2

MEX Example 3

MEX Example 4

MEX Example 5

MEX Example Fortran

MEX F0

MEX F SUB

MEX F1

MEX F2

Numerical Experiments

Computational Exp. (tab)

Computational Experiments

Conclusions

Further Work

Author: Mark Beckett

E-mail: g_beckett@lycos.co.uk

Homepage: http://www.g.beckett.ukgateway.net/index.html

Best viewed with
StarOffice