How can i write the frequency vector for frequency range 5-400 hz using 50 frequncy points
5 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
How can i write the frequency vector for frequency range 5-400 hz using 50 frequncy points
0 comentarios
Respuesta aceptada
Wayne King
el 13 de Jul. de 2012
Hi Lisa, you cannot have 50 frequencies in 30 elements. Obviously whatever Q is here (is it a power spectral density estimate?) is an estimate at only 30 frequency points.
You can space your frequency vector to cover 5 to 400 Hz with fifty points and then select a subset of those 50 so that you can plot(f,Q)
freq = linspace(5,400,50);
% just making up some junk data to plot
Q = abs(randn(30,1));
plot(freq(1:30),Q)
0 comentarios
Más respuestas (1)
Ryan
el 13 de Jul. de 2012
Editada: Ryan
el 13 de Jul. de 2012
FrequencyVector = linspace(5,400,50); %linspace(min,max,# of points)
2 comentarios
Ryan
el 13 de Jul. de 2012
See Wayne King's answer. These type of details should be included in the original question to provide the best answer possible.
Ver también
Categorías
Más información sobre Descriptive Statistics 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!