While solving a system of equations using any numerical method, the point to which the method converges is strongly dependent on the initial guess. The set of points that converge to a given root is called the basin of attraction of that root. It would be interesting to visualize the basins of attraction by coloring each starting point with a different color depending on which root it converges to. The different basins will thus be given different colors. The basins of attraction obtained will look like fractals.
KSSV (2024). Basins of attraction (https://www.mathworks.com/matlabcentral/fileexchange/43564-basins-of-attraction), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!