how to plot two seperate figures the left and right channels

17 ビュー (過去 30 日間)
Ismail Ata Yavuz
Ismail Ata Yavuz 2020 年 1 月 5 日
コメント済み: Star Strider 2020 年 1 月 6 日
what is below written by me shows the plot of the both left and right channel signals at the same time. i would like to plot them seperately into two figures. how can i do that? thanks
close all
clear all
samples=[1,10^5];
[y,fs]=audioread('funk.wav',samples);
t=linspace(0,length(y)/fs,length(y));
plot(t,y)

採用された回答

Star Strider
Star Strider 2020 年 1 月 5 日
Either:
figure
plot(t, y(:,1))
figure
plot(t, y(:,2))
or:
figure
subplot(2,1,1)
plot(t, y(:,1))
subplot(2,1,2)
plot(t, y(:,2))
depending on the result you want.
  2 件のコメント
Ismail Ata Yavuz
Ismail Ata Yavuz 2020 年 1 月 6 日
thank you!!
Star Strider
Star Strider 2020 年 1 月 6 日
As always, my pleasure!

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

その他の回答 (1 件)

Jesus Sanchez
Jesus Sanchez 2020 年 1 月 5 日

カテゴリ

Help Center および File ExchangeGraphics Object Programming についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by