% % fileID = fopen('drb_output.txt','r'); % = fscanf(fileID, '%d'); % fclose(fileID); clc %8−bit digital output is all zeros digital_output = zeros(1,8); %Normalised to one for example reference_voltage = 1; input_voltage = 0.425; for i=1:8 %curr ...
function = calcSNR_lu(vout,Fin,Fs,N,R) % vout: input size is data(1,N) % Fin : signal 's frequency in analog domain % Fs : sampling rate for current stage % N: samples number for current stage % R: total oversampling factor for current stage after pr ...