However, this is essentially 4D -- three input coordinates and one result. Even if you divide it up by k value, the result would be 3D for each k value, which would make it a bit difficult to plot everything at the same time. What kind of plots were you hoping for?
accelReadings(1) should give you the x values. If you have a license for Sensor Fusion and Tracking toolbox or Navigation toolbox, try using read() for more capabilities. For usage and examples, please refer link for read() .
If you have the above-mentioned licenses, you can use imufilter to determine orientation.'imufilter' uses only accelerometer and gyroscope values. Refer to the example here.
Best Answer