Matlab: Real time 3D visualization of MPU6050 accelerometer and gyro - Matlab script
Channel: Leonardo Suriano
Date: 2015-02-15

Source Files: https://github.com/leos313/MPU6050-matlab

In this video, it's shown how it's possible to move an object in Matlab in according with the Inertial Unit.
I've used an Arduino Uno sketch which estimates the angles of rotation (using a Complementary Filter) and sends all the data to Matlab.
In Matlab, you can use the Rotation Matrix (theory of the quaternions) to let the object move. There are a lot of this kind of information on the web but if you need some useful link or the code used in this video, just write in the ISSUES page of the GitHub link!