MATLAB: Finding duration of a signal

durationspectretime series

I have a signal which represent a shot sound with the following characteristics
In the Figure 1 is plot the Data. I think that they are data samples, right? Is there a method to see the signal "Data" in time domain? And can i find the duration of the sound?

Best Answer

Looking at your variable src1, SampleFrequency and Data length are 5000000 and 50000, respectively. So, assuming physical unit of SampleFrequency is [Hz], the duration of your signal should be 0.01 [sec] (= 50000/5000000).