Signal Processing time frequency

2 次查看(过去 30 天)
Xhi Pika
Xhi Pika 2022-5-31
回答: Dev 2025-5-30
How do i, Evaluate and plot the average power (in Watts) of the Fourier Transform and auditory spectrograms at the top and bottom, fig3. Here, ave power to be computed independently for each of the two spectrograms.
Label the axes and title the graphs. bandpower command should help. Must use p2 time vector to display both graphs.

回答(1 个)

Dev
Dev 2025-5-30
Assuming that the spectograms are already available, we can calculate the 'Power Spectral Density' (PSD) for each spectogram since the "bandpower" function in MATLAB takes PSD as the first argument.
power = bandpower(PSD, fs, 'psd');
Next, to plot both these one below the other, we can use a combination of the "subplot" and "plot" functions along with the "grid" command in MATLAB. The "subplot" function helps divide the plotting plane according to our usage and the "grid" command helps to separately identify each graph. We can keep the x-coordinate in the "plot" function as 'p2' to make sure the graphs are plotted against the time vector.
Also, to label the axes and title the graph, we can use the "xlabel", "ylabel" and the "title" functions available in MATLAB.
For more details regarding the usage of each function discussed above, please refer to the documentation links below-
I hope the above explanation resolves your query.

类别

Help CenterFile Exchange 中查找有关 Spectral Measurements 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by