Please, I have a recorded audio signal from experimental work. I have been able to plot the time domain graph (see attached) using Matlab software. By default, the y-axis values are present in a linear scale (Amplitude). I would like to plot the time domain graph such that the y-axis scale is is in decibel. I understand that using 20*log10(signal/ref. signal) should provide the decibel scale on the y-axis, however, this does not seem to work after several attempts.
** My code**
Let say the signa name is TD, so I use the code plot(20*log10(TD/20*10^-6)), the 20*10^-6 is my reference air pressure. The problem is that the entire signal is distorted.
Please, I would be glad if someone can assist me (specifically with a code in matlab to visualise the signal). I might not be doing something right. Thank you.
Thank you.
6 件のコメント
このコメントへの直接リンク
https://jp.mathworks.com/matlabcentral/answers/717500-how-do-i-present-an-audio-signal-in-a-time-domain-plot-using-matlab-such-that-the-y-axis-is-in-deci#comment_1264345
このコメントへの直接リンク
https://jp.mathworks.com/matlabcentral/answers/717500-how-do-i-present-an-audio-signal-in-a-time-domain-plot-using-matlab-such-that-the-y-axis-is-in-deci#comment_1264345
このコメントへの直接リンク
https://jp.mathworks.com/matlabcentral/answers/717500-how-do-i-present-an-audio-signal-in-a-time-domain-plot-using-matlab-such-that-the-y-axis-is-in-deci#comment_1264360
このコメントへの直接リンク
https://jp.mathworks.com/matlabcentral/answers/717500-how-do-i-present-an-audio-signal-in-a-time-domain-plot-using-matlab-such-that-the-y-axis-is-in-deci#comment_1264360
このコメントへの直接リンク
https://jp.mathworks.com/matlabcentral/answers/717500-how-do-i-present-an-audio-signal-in-a-time-domain-plot-using-matlab-such-that-the-y-axis-is-in-deci#comment_1264375
このコメントへの直接リンク
https://jp.mathworks.com/matlabcentral/answers/717500-how-do-i-present-an-audio-signal-in-a-time-domain-plot-using-matlab-such-that-the-y-axis-is-in-deci#comment_1264375
このコメントへの直接リンク
https://jp.mathworks.com/matlabcentral/answers/717500-how-do-i-present-an-audio-signal-in-a-time-domain-plot-using-matlab-such-that-the-y-axis-is-in-deci#comment_1264380
このコメントへの直接リンク
https://jp.mathworks.com/matlabcentral/answers/717500-how-do-i-present-an-audio-signal-in-a-time-domain-plot-using-matlab-such-that-the-y-axis-is-in-deci#comment_1264380
このコメントへの直接リンク
https://jp.mathworks.com/matlabcentral/answers/717500-how-do-i-present-an-audio-signal-in-a-time-domain-plot-using-matlab-such-that-the-y-axis-is-in-deci#comment_1264870
このコメントへの直接リンク
https://jp.mathworks.com/matlabcentral/answers/717500-how-do-i-present-an-audio-signal-in-a-time-domain-plot-using-matlab-such-that-the-y-axis-is-in-deci#comment_1264870
このコメントへの直接リンク
https://jp.mathworks.com/matlabcentral/answers/717500-how-do-i-present-an-audio-signal-in-a-time-domain-plot-using-matlab-such-that-the-y-axis-is-in-deci#comment_1266405
このコメントへの直接リンク
https://jp.mathworks.com/matlabcentral/answers/717500-how-do-i-present-an-audio-signal-in-a-time-domain-plot-using-matlab-such-that-the-y-axis-is-in-deci#comment_1266405
サインインしてコメントする。