LaTeX templates and examples — MATLAB
Recent
![Highlighting MATLAB Code in LaTeX with mcode](https://writelatex.s3.amazonaws.com/published_ver/617.jpeg?X-Amz-Expires=14400&X-Amz-Date=20250211T203145Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAWJBOALPNFPV7PVH5/20250211/us-east-1/s3/aws4_request&X-Amz-SignedHeaders=host&X-Amz-Signature=f4dc4c098232196f84cce72d7d4fcae27a57e737eefc81b3d0721174bdbed33b)
The mcode package configures the listings package to highlight MATLAB code in LaTeX. Inline, block and file listings are supported. This template includes a version of mcode.sty from the MATLAB file exchange, last updated 6 Mar 2014.
![Assignment that also uses matlab](https://writelatex.s3.amazonaws.com/published_ver/3743.jpeg?X-Amz-Expires=14400&X-Amz-Date=20250211T203145Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAWJBOALPNFPV7PVH5/20250211/us-east-1/s3/aws4_request&X-Amz-SignedHeaders=host&X-Amz-Signature=51e544de27c1fb11a05c63d430c1e1ad68f954f1c907cd9cae5c2b173133b3dd)
This is example for an assignment that uses both matlab code and images
![Filter Overview](https://writelatex.s3.amazonaws.com/published_ver/1417.jpeg?X-Amz-Expires=14400&X-Amz-Date=20250211T203145Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAWJBOALPNFPV7PVH5/20250211/us-east-1/s3/aws4_request&X-Amz-SignedHeaders=host&X-Amz-Signature=a39688b8a6e4252f8f3678375179e22a953621307373d8299984faf32fdefed6)
continuous and discrete transfer functions for low pass, high pass, band pass and band stop filters
![Ultrasonic Positioning System](https://writelatex.s3.amazonaws.com/published_ver/2320.jpeg?X-Amz-Expires=14400&X-Amz-Date=20250211T203145Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAWJBOALPNFPV7PVH5/20250211/us-east-1/s3/aws4_request&X-Amz-SignedHeaders=host&X-Amz-Signature=3cda7b2c340dfe2fc90e091e805e3aa2bd5f33895a45943707aed6e5c301b93b)
An indoor positioning system relying on time difference of arrival measurements of ultrasonic pings from fixed transmitters. Code available at https://github.com/YingVictor/ultrasonic-positioning
\begin
Discover why 18 million people worldwide trust Overleaf with their work.