butter is not working

12 ビュー (過去 30 日間)
MICHKEL ANGLO J
MICHKEL ANGLO J 2021 年 7 月 23 日
コメント済み: Chunru 2021 年 7 月 25 日
when ever i use butter and filter function to plot,nothing is shown in my output screen.Except butter code output all other outputs are shown
  12 件のコメント
MICHKEL ANGLO J
MICHKEL ANGLO J 2021 年 7 月 24 日
ok i will do.
Chunru
Chunru 2021 年 7 月 25 日
Try "which butter" or "dbstop in butter".

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

採用された回答

Chunru
Chunru 2021 年 7 月 24 日
clc;
clear all;
close all;
m=1;
Am=5;
Fa=2000
Fa = 2000
ta=1/Fa;
t=0:ta/999:6*ta;
ym=Am*sin(2*pi*Fa*t);
subplot(4,1,1);
plot(t,ym);
title('message signal')
SNR=1
SNR = 1
Ac=5
Ac = 5
Fc=Fa*10;
tc=1/Fc
tc = 5.0000e-05
yc=Ac*sin(2*pi*Fc*t);
subplot(4,1,2);
plot(t,yc);
grid on;
title('carrier signal')
y=Ac.*(1+m*sin(2*pi*Fa*t)).*sin(2*pi*Fc*t);
subplot(4,1,3);
plot(t,y)
grid on;
title('Amplitude modulation');
s1=y.*yc;
[b,a]=butter(4,0.004);
s2=filter(b,a,s1);
subplot(4,1,4);
plot(s2);
grid on;
title('am demod');

その他の回答 (0 件)

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by