How can I plot a 144000 sample sound file in separate windows with 400 samples with for loop?

2 ビュー (過去 30 日間)
Serhat Sayim
Serhat Sayim 2021 年 4 月 10 日
回答済み: Walter Roberson 2021 年 5 月 9 日
I have a plot of an audio file with 144000 samples. You can see it in attachments. I would like to plot and examine this 144000 samples sound file in separate windows, each with 400 samples. I mean each window will contain 400 samples of it. How can I do that. I will be glad if you can help.

回答 (1 件)

Walter Roberson
Walter Roberson 2021 年 5 月 9 日
d400 = reshape(YourData, 400, []);
for K = 1 : size(d400,2)
fig = figure();
ax = axes(fig);
plot(d400(:,K));
title(sprintf('Window #%d', K));
end
I do not recommend this! You would be generating 360 figures!

カテゴリ

Help Center および File ExchangeAudio I/O and Waveform Generation についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by