Generating a time vector
์กฐํ ์: 16 (์ต๊ทผ 30์ผ)
์ด์ ๋๊ธ ํ์
Xhi Pika
2022๋
5์ 30์ผ
๋๊ธ: Star Strider
2022๋
6์ 4์ผ
How do i generate a time vector p2 that contains ๐ number of samples in the range from 0 to the time duration of the sound signal in sa2.wav. Here, ๐ is a fixed number dependent on the length (number of samples) of the auditory spectrogram.
๋๊ธ ์: 0
์ฑํ๋ ๋ต๋ณ
Star Strider
2022๋
5์ 30์ผ
Try this โ
[y,Fs] = audioread('sa2.wav');
L = size(y,1);
p2 = linspace(0, L-1, L)/Fs;
.
๋๊ธ ์: 4
Star Strider
2022๋
5์ 31์ผ
This seems to be a homework assignment (and I have no idea with โfig.3โ shows), and all that should have already been covered either in class or discussed in your textbook. The relevant MATLAB functions are probably fft, stft, pwelch, pspectrum, and spectrogram. (The units of the pspectrum function plot with the 'spectrogram' option are different from the units of the spectrogram plot.) Others may also be appropriate.
Star Strider
2022๋
6์ 4์ผ
์ถ๊ฐ ๋ต๋ณ (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!