Accelerometer-Arduino-Servo control with matlab

I am working on a project where accelerometer data will need to be read live and interpreted/analysed using some software or a programming language. After analysis, a corresponding signal would need to be sent to the servo.

Since all of this needs to happen live (and quickly), are there any recommendations what I could use to analyse the accelerometer data? I was thinking of using matlab as I am most familiar with it.

Any tips on the whole hardware set up?

Many Thanks in advance!

A confused student who knows nothing about electronics of any sort.