Scientists have successfully taught robots to perform a challenging brain technique only previously mastered by a handful of humans.