通信人家园

标题: 调制与解调MATLAB  [查看完整版帖子] [打印本页]

时间:  2012-7-16 22:11
作者: virtual1985     标题: 调制与解调MATLAB

PM
Fs=100;
Fc=10;
t=[0:200]/Fs;
x=sin(2*pi*t);
kp = pi/max(max(abs(x)));
y = cos(2*pi*Fc*t + kp*x);
yq = hilbert(y).*exp(-j*2*pi*Fc*t);
x1=unwrap(angle(yq));
subplot(3,1,1);
plot(x);
subplot(3,1,2);
plot(y);
subplot(3,1,3);
plot(x1);
FM
Fs=100;
Fc=10;
t=[0:200]/Fs;
x=sin(2*pi*t);
kf = (Fc/Fs)*2*pi/max(max(abs(x)));
y = cos(2*pi*Fc*t + kf*cumsum(x));
yq = hilbert(y).*exp(-j*2*pi*Fc*t);
x1=diff(unwrap(angle(yq)));
[b,a]=butter(3,Fc*2/Fs);
x2= filtfilt(b,a,x1);
subplot(3,1,1);
plot(x);
subplot(3,1,2);
plot(y);
subplot(3,1,3);
plot(x2);
am dsb
Fs=100;
Fc=10;
t=[0:200]/Fs;
x=sin(2*pi*t);
y = x.*cos(2*pi*Fc*t);
x1= y.*cos(2*pi*Fc*t);
[b,a]=butter(5,Fc*2/Fs);
x2 = filtfilt(b,a,x1);
subplot(3,1,1);
plot(x);
subplot(3,1,2);
plot(y);
subplot(3,1,3);
plot(x2);

ssb
Fs=100;
Fc=10;
t=[0:200]/Fs;
x=sin(2*pi*t);
y = x.*cos(2*pi*Fc*t) + imag(hilbert(x)).*sin(2*pi*Fc*t);
x1= y.*cos(2*pi*Fc*t);
[b,a]=butter(5,Fc*2/Fs);
x2 = filtfilt(b,a,x1);
subplot(3,1,1);
plot(x);
subplot(3,1,2);
plot(y);
subplot(3,1,3);
plot(x2);
时间:  2012-7-16 22:32
作者: 笑忘歌

Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
        at com.mathworks.mde.filebrowser.FileHTMLView.changeDirectory(FileHTMLView.java:362)
        at com.mathworks.mde.filebrowser.FileBrowser$PathAction.actionPerformed(FileBrowser.java:407)
        at java.awt.AWTEventMulticaster.actionPerformed(Unknown Source)
        at com.mathworks.jmi.MatlabPath$DeferredActionEvent.dispatch(MatlabPath.java:114)
        at com.mathworks.util.QueueEvent$QueueTarget.processEvent(QueueEvent.java:117)
        at java.awt.Component.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)




通信人家园 (https://www.txrjy.com/) Powered by C114