Borrar filtros
Borrar filtros

Extracting X axis and Y axis data from spectrogram figure

6 visualizaciones (últimos 30 días)
VARUN PAL J
VARUN PAL J el 1 de Abr. de 2019
Editada: VARUN PAL J el 1 de Abr. de 2019
How to get the x axis and y axis data from the spectrogram figure or plot. The code that I use ,
b=openfig('spec.fig');
h = findobj(gca,'Type','line')
x=get(h,'Xdata');
y=get(h,'Ydata');
.I need time and frequency data from X axis and Y axis but I get empty values in both x and y. Kindly suggest a solution for this. Thanks...

Respuestas (1)

Rohit Kumar
Rohit Kumar el 1 de Abr. de 2019
Editada: Rohit Kumar el 1 de Abr. de 2019
Spectrogram doesn't give you "Plot Lines" on axes. What you get is an "Image".

Categorías

Más información sobre Spectral Measurements en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by