flood_fill
Version 1.0.1 (1.44 KB) by
Marcus Schwenk
flood fills logical 1s into an array, not using recursion
M = flood_fill(A,c)
returns array A after replacing position c by '1' flooding to all connected '0's
Cite As
Marcus Schwenk (2024). flood_fill (https://www.mathworks.com/matlabcentral/fileexchange/118340-flood_fill), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2022b
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.