version 1.0.1 (1.44 KB) by Marcus Schwenk
flood fills logical 1s into an array, not using recursion


Updated 1 Oct 2022

View License

M = flood_fill(A,c)
returns array A after replacing position c by '1' flooding to all connected '0's

Cite As

Marcus Schwenk (2022). 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 Linux
Tags Add Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!