https://blogs.mathworks.com/images/seth/2013Q3/mupad_generate.png