标签:
a0=S.signals(1,1).values(1500:3000,1);
a1=a0+16000;
a2=a1/320000;
a3=(a2+1)*2;
a4=roundn(a3,-3);
a5=a4*1000;
a6=roundn(a5,0);
%--------------------------------------------------------
b0=S.signals(1,2).values(1500:3000,1);
b1=b0+160000;
b2=b1/320000;
b3=(b2+1)*2;
b4=roundn(b3,-3);
b5=b4*1000;
b6=roundn(b5,0);
%--------------------------------------------------------
k=(a6-b6);
figure(2)
subplot(3,1,1)
plot(a6)
subplot(3,1,2)
plot(b6)
subplot(3,1,3)
plot(k)
标签:
原文地址:http://www.cnblogs.com/fpga-altera/p/4928845.html