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=20250218T223357Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAWJBOALPNFPV7PVH5/20250218/us-east-1/s3/aws4_request&X-Amz-SignedHeaders=host&X-Amz-Signature=e161bee2d0bc997c32d6e8449c87f6aa14ef697031eb5f83076321ff52744670)
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=20250218T223357Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAWJBOALPNFPV7PVH5/20250218/us-east-1/s3/aws4_request&X-Amz-SignedHeaders=host&X-Amz-Signature=a74c833cf292f29323ba5a50edf94352ae52427dd2db89b352988e267eb647ae)
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=20250218T223357Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAWJBOALPNFPV7PVH5/20250218/us-east-1/s3/aws4_request&X-Amz-SignedHeaders=host&X-Amz-Signature=bc552dd79789c8744d0a1df2b9c086650ce7a9860e4760c2f7132f9ed659e5a4)
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=20250218T223357Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAWJBOALPNFPV7PVH5/20250218/us-east-1/s3/aws4_request&X-Amz-SignedHeaders=host&X-Amz-Signature=b0c2502e39b0fd4c4aba384785e00a2169ce67284dacc0abc62a2ca74e95dfbc)
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.