Department of Engineering
University of Cambridge
Saving and Loading figures
Functions are faster than scripts - they get compiled internally the first time they are run.
Use vectorised operations instead of
If you know the maximum size that a matrix will be, create it that size, rather than letting it grow incrementally.
every so often to tidy up memory usage.
Use sparse matrices when you can. They may save you a great deal of space and time.
Cambridge University Engineering Dept
Information provided by