Suppose I have a continuous function $f:\mathbb{R}^2 \rightarrow \mathbb{R}$ and I want to numerically find the curve(s) of points $$ f(x, y) =0 $$ By finding I mean constructing an array of coordinates that represent the curve. Are there any well established numerical methods for doing this? Does MatLab have a built in function for solving this problem? I would appreciate either details of a numerical method or explanation of how to do this in MatLab as answers.
My current approach is to split my domain into rectangular elements and find an interpolated bilinears root curves. However, this produces one root curve per element, meaning the curves are fragmented and contain a vast excess of points. My algorithm works, but plotting the result produces a figure that MatLab cannot handle.