how to plot bar overall 1/3 octave by Poctave() as show below(bar color red)?
52 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
ngoc quy hoang ngoc quy
el 26 de Feb. de 2021
Comentada: Mathieu NOE
el 1 de Mzo. de 2021
0 comentarios
Respuesta aceptada
Mathieu NOE
el 26 de Feb. de 2021
hello
see example below :
Fs = 44.1E3;
xInp = rand(1,2^16);
% Compute the octave spectrum of the same signal, but this
% time, use a A-Weighting filter. Visualize the spectrum.
[P,f] = poctave(xInp,Fs,'FrequencyLimits',[20 20E3],'FilterOrder',6,'BandsPerOctave',3,'Weighting','A');
f = round(f);
figure(1), bar(1:length(f),20*log10(P)+200)
xlabel('Hz');
ylabel('Amplitude (dB(A))');
set(gca,'XTick',1:length(f));
set(gca,'XTickLabel',f);set(xticklabel_rotate([],60),'color',get(gca,'xcolor'));
10 comentarios
ngoc quy hoang ngoc quy
el 27 de Feb. de 2021
Editada: ngoc quy hoang ngoc quy
el 27 de Feb. de 2021
Más respuestas (0)
Ver también
Categorías
Más información sobre Measurements and Spatial Audio 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!