※ [本文转录自 Electronics 看板 #1TWb66di ]
作者: ferogamo (法拉嘎模) 看板: Electronics
标题: [问题] matlab做quantization
时间: Wed Sep 18 23:47:16 2019
请问现在我有一个2048x1的data,我把它在时域呈现是一个sin wave
现在要对其做量化, 3bit, input range是1.2V, output range是1.4V
sampling frequency:1.024 MHz
展成时域的code如下:
load('datafile');
Fs = 1.024e6; % Sampling frequency
T = 1/Fs; % Sampling period
L = 2048; % Length of signal
t = (0:L-1)*T; % Time vector
plot(t, datafile);
请问我该怎么做呢? 感谢!