MCLin1Dsimple
Particle filter example in 1D. "MCLin1Dsimple" implements Monte-Carlo Localization in one Dimension.
Simulates particle filtering in 1D using MCL algorithm (table 8.2) from
"Probabilistic Robotics", (Intelligent Robotics and Autonomous Agents
series) Hardcover – August 19, 2005 by Sebastian Thrun, Wolfram Burgard,
Dieter Fox.
This simple implementation is designed for teaching. It has pauses, and
you must press a key to step through the simulation. Displays the particles before moving in blue (with a histogram), the actual position after moving with a red line, the measurement with a magenta line, the particles propagated forward by the motion model and weighted according to the measurement in black, and the resampled particles in red (with a histogram).
Aaron T. Becker, University of Houston
Cite As
Aaron T. Becker's Robot Swarm Lab (2025). MCLin1Dsimple (https://www.mathworks.com/matlabcentral/fileexchange/50600-mclin1dsimple), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.