I'm working with position data from a hand sensor, and need to apply an FFT to it to get the level of tremor based on the frequency of the signal. I get two arrays, one with +1000 frames of position data, the other with +1000 timestamps related to position data, both in .csv files. I'm having trouble formatting the data for the FFT function on matlab. How i transform my position (and probably timestamps) data to a signal who can be processed on function FFT()?
FFT in matab uses a dataset as a vector or an array. If the array is X, the FFT is calculated using FFT(X). Therefore first make an array using the csv file. You can use X = csvread(filename). Then use FFT(X) command. You dont need the time stamp for this.