How to set yaxis equal to each other in a subplot of two scalograms made from two different Motherwavelet?
Mostrar comentarios más antiguos
Hi I am trying to subplot two scalograms made from two different mother wavelets (and therefore with two different center frequencies and scales-to-frequency ratios). I have converted the y axis to pseudo-frequencies and am now trying to set the y limits for each plot to have the same span. How do I manipulate the y axis so that the ymin and ymax are the same for both plots but the images (the scalograms) must correspond to the values of the pseudo-frequencies?
Any help is greatly appreciated Thank you - Katrine
Respuesta aceptada
Más respuestas (1)
Wayne King
el 22 de Mayo de 2012
Hi Katrine, Have you tried
set(gca,'ylim',[minfreq maxfreq])
So something like:
t = linspace(0,5,5e3);
x = cos(2*pi*100*t).*(t<1)+cos(2*pi*50*t).*(3<t)+0.3*randn(size(t));
COEFS = cwt(x,1:32,'cgau4');
F = scal2frq(1:32,'cgau4',0.001);
sc = wscalogram('[]',COEFS,'scales',1:32);
mesh(t,F,sc); view(0,90); set(gca,'ylim',[15 250]);
xlabel('Time'); ylabel('Hz');
4 comentarios
Katrine
el 23 de Mayo de 2012
Wayne King
el 23 de Mayo de 2012
I think if you provide a small example it would be very helpful
Katrine
el 23 de Mayo de 2012
Katrine
el 23 de Mayo de 2012
Categorías
Más información sobre Wavelet Toolbox en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!