Signal Processing time frequency
조회 수: 2 (최근 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.
댓글 수: 0
답변 (1개)
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.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Spectral Measurements에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!