Similar vortices found in ferroelectric and ferromagnetic materials