Why do i get an error using the spectrogram function??
Afficher commentaires plus anciens
I get an error when i use the spectrogram function. I am trying to analyse an AE signal and i want to get the spectrogram.
My signal has 14291 data points with a measuring time of 20,48 ms.
I put the data in a column vector named 'sig' (data type is double) and defined fs as fs= 1/T(being the measuring time) == outcome is 48,8281
i tried plotting the spectrogram using the following lines:
I put the code and signal as attachments. Can someone please help me understand what i am doing wrong and why? as u might see i am pretty new to scripting.
i only need to see the frequency domain against the time domain to understand what filter i should design. thats why i left it blank.
figure(3)
spectrogram(sig,[],[],[], fs, 'yaxis')
hold on
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Get Started with Signal Processing Toolbox dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
