Example for policy evaluation in a small gridworld problem
Version 1.2 (3.29 KB) by
Panagiotis
The files contain the algorithm to estimate the values of states in finite gridworld using random policy for movements
This small problem solution corresponds to Example 4.1 from the book:
"Reinforcement Learning An Introduction"
second edition
by Richard S. Sutton and Andrew G. Barto
ISBN: 978-0-262-19398-6
The code estimates the value of a starting point grid, using randomly selected actions-movements until the exit grid is reached
Cite As
Panagiotis (2025). Example for policy evaluation in a small gridworld problem (https://uk.mathworks.com/matlabcentral/fileexchange/171099-example-for-policy-evaluation-in-a-small-gridworld-problem), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2024a
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
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.
