Search Contact information
University of Cambridge Home Department of Engineering
University of Cambridge >  Engineering Department >  computing help
next up previous contents
Next: Saving graphics Up: I/O Previous: I/O

Saving and loading data

By default matlab saves values into MAT-files with a .mat extension, so save results Z would save the Z array into a file called results.mat. This array could be reloaded into matlab by using load results.

You can load files produced by other programs. If a file called data contains ``1 2 3'' then load data will create a matlab matrix called data which contains those numbers.



© Cambridge University Engineering Dept
Information provided by Tim Love
2006-07-24