早教吧作业答案频道 -->其他-->
将下面的载波换成chirp信号要求0时为down-chirp1时为up-chirps=[01110101];\x05t=0:2*pi/99:2*pi;\x05m1=[];c1=[];b1=[];\x05forn=1:length(s)\x05ifs(n)==0;\x05m=ones(1,100);\x05c=sin(5*t);\x05b=zeros(1,100);\x05elses(n)==1;
题目详情
将下面的载波换成chirp信号 要求0时为down-chirp 1时为up-chirp
s=[0 1 1 1 0 1 0 1];
\x05t=0:2*pi/99:2*pi;
\x05m1=[];c1=[];b1=[];
\x05for n=1:length(s)
\x05 if s(n)==0 ;
\x05 m=ones(1,100);
\x05 c=sin(5*t);
\x05 b=zeros(1,100);
\x05 else s(n)==1;
\x05 m=ones(1,100);
\x05 c=sin(2*t);
\x05 b=ones(1,100);
\x05 end
\x05 m1=[m1 m];
\x05 c1=[c1 c];
\x05 b1=[b1,b];
\x05end
\x05f=c1.*m1;
\x05subplot(3,1,1);
\x05plot(b1)
\x05title ('原始信号');
axis([0 100*length(s) -0.1 1.1]);
\x05subplot(3,1,2);
\x05plot(c1)
\x05title ('载波信号c1');
\x05axis([0 100*length(s) -1.1 1.1]);
\x05subplot(3,1,3);
\x05plot (f);
\x05title ('fSK已调信号');
axis([0 100*length(s) -1.1 1.1]);
s=[0 1 1 1 0 1 0 1];
\x05t=0:2*pi/99:2*pi;
\x05m1=[];c1=[];b1=[];
\x05for n=1:length(s)
\x05 if s(n)==0 ;
\x05 m=ones(1,100);
\x05 c=sin(5*t);
\x05 b=zeros(1,100);
\x05 else s(n)==1;
\x05 m=ones(1,100);
\x05 c=sin(2*t);
\x05 b=ones(1,100);
\x05 end
\x05 m1=[m1 m];
\x05 c1=[c1 c];
\x05 b1=[b1,b];
\x05end
\x05f=c1.*m1;
\x05subplot(3,1,1);
\x05plot(b1)
\x05title ('原始信号');
axis([0 100*length(s) -0.1 1.1]);
\x05subplot(3,1,2);
\x05plot(c1)
\x05title ('载波信号c1');
\x05axis([0 100*length(s) -1.1 1.1]);
\x05subplot(3,1,3);
\x05plot (f);
\x05title ('fSK已调信号');
axis([0 100*length(s) -1.1 1.1]);
▼优质解答
答案和解析
clear all;
s=[0 1 1 1 0 1 0 1];
N=1000;\x05
% t=linspace(0,1,N);
ss0=1; ss1=1;
f0=15; f1=1;
m1=[];c1=[];b1=[];
for n=1:length(s)
if s(n)==0;
if (n+1
s=[0 1 1 1 0 1 0 1];
N=1000;\x05
% t=linspace(0,1,N);
ss0=1; ss1=1;
f0=15; f1=1;
m1=[];c1=[];b1=[];
for n=1:length(s)
if s(n)==0;
if (n+1
看了将下面的载波换成chirp信号...的网友还看了以下:
我想知道一个如下方程的根的分布,做出图形看看,结果错了,什么原因呢?方程是cos(xsin(cit 2020-04-27 …
matlab程序 解方程组syms a b Rsd Rspf1=72.8*(1+cos(a))-2 2020-05-16 …
matlab新人,想把矩阵中的符号变量替换为数值变量,程序运行结果不对,程序为:x=-1:0.5: 2020-05-16 …
MATLAB中的错误???Subscriptindicesmusteitherberealposi 2020-05-17 …
matlab离散点做曲线v11 = [ 0,3.44,6.86,10.3,12.3,13.6,14 2020-06-27 …
matlab求方程组问题L1=304.8;L2=101.6;L3=254.0;L4=177.8;t 2020-07-19 …
matlab中一小段序列相加相乘的理解问题x1=zeros(1,length(n));x2=zer 2020-07-20 …
matlab高手进来看看.form=1:length(l);x=0:0.01:l(m);forn=1 2020-11-04 …
将下面的载波换成chirp信号要求0时为down-chirp1时为up-chirps=[011101 2020-12-15 …
f0=10;%f1=20;x=sin(2*pi*f0*t)+rand(1,length(2*pi*f 2021-02-01 …