Harlem Shake with a Stewart platform

I had a project assignment to do for one of my university courses (Numerical Analysis). The project was about modeling a Stewart platform in MATLAB. I took it a step further and animated a Harlem Shake of the final result. Enjoy the video!

Here is the code that I have written to generate the images compiled in the video above: