changes from friday

This commit is contained in:
Silas Oettinghaus
2023-05-21 15:31:39 +02:00
parent 8d098a6c80
commit f5747bb863
9 changed files with 311 additions and 187 deletions

View File

@@ -93,7 +93,8 @@ classdef Scope
% sample signal
% TODO: implement and test the delays. Also look for delay of
% lpf filter
yout = obj.sampleSignal(xin);
%yout = obj.sampleSignal(xin);
yout = resample(xin,obj.fadc,obj.fsimu);
% quantize signal
yout = obj.quantize(yout);
@@ -148,6 +149,8 @@ classdef Scope
% Sample the signal using linear interpolation
sampout = xin(floor(inx_re)) .* (1 - val_re) + xin(ceil(inx_re)) .* val_re ;
sampout2 = resample(xin,obj.fadc,obj.fsimu);
end
function quantout = quantize(obj,xin)