Quanterr.png(489 × 320像素,文件大小:2 KB,MIME类型:image/png


摘要

描述 Plot of a quantized signal and its error
日期
来源 自己的作品
作者 Atropos235

Source Code

close all; figure
t = 0:0.0001:2;
   % generate some nice looking signal then scale to +/- 1
x = 2*cos(2*pi*t)+1.5*cos(4*pi*t+2)+1*cos(5*pi*t)+0.5*cos(10*pi*t);
x = 2*(x - min(x))/(max(x)-min(x)) - 1;
   % quantization
n = 2; % bits 
xq = floor((1-1e-12)*(x+1).*2.^(n-1));
xq = xq / (2^(n-1));
xq = xq - (2^n - 1) / 2^n;
   % error signal
qerr = x - xq;
   % plot
subplot(211); plot(t,x,'b',t,xq,'r'); title('Original and Quantized Signal');
subplot(212); plot(t,qerr,'b'); title('Quantization Error');

许可协议

Public domain 我,本作品著作权人,释出本作品至公有领域。这适用于全世界。
在一些国家这可能不合法;如果是这样的话,那么:
我无条件地授予任何人以任何目的使用本作品的权利,除非这些条件是法律规定所必需的。

说明

添加一行文字以描述该文件所表现的内容
Plot of a quantized signal and its error

此文件中描述的项目

描繪內容

文件历史

点击某个日期/时间查看对应时刻的文件。

日期/时间缩⁠略⁠图大小用户备注
当前2010年5月6日 (四) 21:132010年5月6日 (四) 21:13版本的缩略图489 × 320(2 KB)Aiyizolosslessly compressed with pngout
2008年2月24日 (日) 03:412008年2月24日 (日) 03:41版本的缩略图489 × 320(5 KB)Atropos235{{Information |Description=Plot of a quantized signal and it's error |Source=self-made |Date=23 February 2008 |Author= Atropos235 |Permission= |other_versions= }} ==Source Code== <pre><nowiki> close all; figure t = 0:0.0001:2; % gen

以下2个页面使用本文件:

全域文件用途

以下其他wiki使用此文件: