⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pskmc.m

📁 it will make the sinosoidal wave forms after you input the values of phase,freq,delay and sampling i
💻 M
字号:
function y=pskmc(x);
ph=0;
y=[];
for k=1:2:length(x)
    if x(k)==0 && x(k+1)==0
       [a,ph]=sino1(2*pi*10,1000,1,0+ph);
    end
    if x(k)==0 && x(k+1)==1
       [a,ph]=sino1(2*pi*10,1000,1,(pi/2)+ph);
    end
    if x(k)==1 && x(k+1)==0
       [a,ph]=sino1(2*pi*10,1000,1,pi+ph);
    end
    if x(k)==1 && x(k+1)==1
       [a,ph]=sino1(2*pi*10,1000,1,(3*pi/2)+ph);
    end
    y=[y a];
end
subplot(2,1,1),stem(x);
subplot(2,1,2),stem(y);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -