Hello David,
In this case I recommend taking a look at our Freedom Sensor Toolbox, it is designed to evaluate our accelerometers out of the box. You can use the FRDM-KL25Z to evaluate the on-board MMA8451Q device.
With its USB connectivity feature, you can interface the acceleration board with your PC thru USB and export the logged data to an Excel sheet, then you could process that data in Matlab.

I hope this information helps.
Regards,
David