How can I Plot spectrogramm with Excel File
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
houssem chedli
am 7 Dez. 2017
Kommentiert: Star Strider
am 8 Dez. 2017
Dear all I Have a Excel sheet with a dimension 10082*36 the 10082 represent the Time and the 36 represent Supraharmonic frequency 2 kHz-150 kHz (columns: 2 kHz,4 kHz,6 kHz.......150 kHz=36columns) i Want Dislay this Excel-Sheet in Matlab With Spectrogramm Plot. All the Commands and Syntaxes in Matlab Documetation were for a wave file . i had already import the Data from Excel to Matlab %filename = 'Ladestation Mittelwert' %omega=xlsread(filename) %A=omega(1:10080,1:36) but now i don't know how i kann plot this Matrix(omega) in Spectrogramm Diagramm with x-axis represent the time (1:10080 a Week ) and the y-Axis represent the the Frequency from 2 kHz to 150 kHz Color in the Spectrogramm represent the Amplitude (Voltage Harmonic )in V or in Dbv i Want habe a plot like this Pic it very Helpful for when you can Help me i need this for my thesis thank you
0 Kommentare
Akzeptierte Antwort
Star Strider
am 7 Dez. 2017
From your description, it seems that you have already created the spectrogram information.
The MATLAB spectrogram function plots it as a surf plot with view([0 90]). Import your Excel file using xlsread and plot it similarly. See the documentation on the surf (link) function for details.
0 Kommentare
Weitere Antworten (3)
houssem chedli
am 7 Dez. 2017
Bearbeitet: Star Strider
am 7 Dez. 2017
1 Kommentar
Star Strider
am 7 Dez. 2017
I am not certain what the problem could be, since I do not have your matrix. It is difficult to read the chart, however the spectrogram data corresponding to your ‘omega’ appear to be in decibels.
If your data are not already in decibels, try this:
A = 20*log10(abs(omega(1:10078,1:36)));%einlesen von erste Matrix Messwerte für Leiter 1
houssem chedli
am 7 Dez. 2017
1 Kommentar
Star Strider
am 8 Dez. 2017
I just saw this now. (It should have been in a Comment, not an Answer.)
That could be caused by very frequent (dense) grid spacing.
After that surf plot, add this line:
set(gca, 'EdgeColor','none')
If the grid spacing is the cause, that should be the solution.
Siehe auch
Kategorien
Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

