- Matlab can be used to create and manipulate discrete-time signals.
- Individual expressions can be typed directly inside the Matlab interpreter. Collections of commands can be saved in text-files or scripts (with .m extensions) and then run from the command-line. Users can also write Matlab functions.
- Matlab operations are optimized for matrix algebra. Loops tend to execute more slowly.
- Matlab functions can be compiled as C executables to speed up performance (though you must have the compiler).
- You can also organize code in class structures and create projects with very detailed graphical user interfaces.
- I have recently created a MEX package that provides multichannel realtime audio support using RtAudio.
- Matlab is not free and its pricing structure is very complex. However, McGill has a site license.
- An open-source alternative to Matlab called Octave is available.
- Useful functions: size, abs, sum, plot, axis, stem, fft, ifft, grid, ...
- One can get help for any function by typing help and a function name at the command-line prompt (ex. help plot).

- Matlab Signals
- A Couple Examples
- Matlab Audio I/O
- Computing Audio Spectra in Matlab
- Other Useful Functions
- Writing Matlab Functions

©2004-2022 McGill University. All Rights Reserved. Maintained by Gary P. Scavone. |