フィルターのクリア

How can I separate these four sensor data from one audio file?

2 ビュー (過去 30 日間)
Md Shahriar Islam
Md Shahriar Islam 2018 年 10 月 6 日
コメント済み: Star Strider 2018 年 10 月 12 日
Hi, I have an audio file that has four signals in it. These 4 signals are not of the same size. How can I separate these signals?

採用された回答

Star Strider
Star Strider 2018 年 10 月 6 日
One approach:
D = load('signal.mat');
s = D.new_signal;
x = 1:numel(s);
[seu, sel] = envelope(s, 250, 'rms'); % Calculate Envelope
cpidx = findchangepts(seu, 'MaxNumChanges',3, 'Statistic','linear'); % Find Transitions
figure
plot(x, s)
hold on
plot([cpidx; cpidx], ones(2,numel(cpidx)).*ylim', '-g', 'LineWidth',2)
hold off
grid
axis tight
Out = mat2cell([s; x], 2, diff([0 cpidx numel(s)])); % Cell Array Of The Different Signals
The result is:
Out =
1×4 cell array
{2×6026 double} {2×9632 double} {2×6776 double} {2×7326 double}
The separations are illustrated here:
  2 件のコメント
Md Shahriar Islam
Md Shahriar Islam 2018 年 10 月 12 日
Thank you
Star Strider
Star Strider 2018 年 10 月 12 日
As always, my pleasure.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDescriptive Statistics についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by