MATLAB: How to convert acceleration-time data to find frequency

accelerometertime-frequency

I have acceleration time data which were taken by mobile accelerometer. I want to convert them to time- frequency and time- amplitude. Can you please help. Thanks

Best Answer

You already have them as ‘time-amplitude’, if you have to have a vector of sampling times that match your vector (or matrix) of accelerometer data. If you want to plot them, see the documentation for the plot function.
To see your data as ‘time-frequency’, use the Signal Processing Toolbox spectrogram function. It will plot them for you, or you can plot it yourself with outputs you request. See the documentation to understand how to use it.