Description
all info in file I posted ...................
Unformatted Attachment Preview
Purchase answer to see full attachment
Explanation & Answer
https://drive.google.com/drive/folders/1yXa6hQJQUY...
% ADC_NU function test
R = 10;
B = 3;
x = -5:15;
y = adc_NU(x,R,B);
t = 0:length(x)-1;
figure(11)
plot(t,x,t,y)
plot(t,x,'g-*','LineWidth',2.2)
hold on
stem(t,y,'filled','LineWidth',2.2)
hold off
title('Ramp function unipolar quantization')
xlabel('Time in sec')
ylabel('Signal magnitude in volts')
axis([-0.1,20.1,-5.1,15.1])
Published with MATLAB® R2016a
T = 2; %parameters
f0 = 1000;
fs1 = 20000;
fs2 = 1500;
[x1, t1] = sin_NU(fs1,f0,T);
[x2, t2] = sin_NU(fs2,f0,T);
figure;
plot(t1,x1,t2,x2,'LineWidth',3.0),
axis([0, 0.005, -1.1, 1.1])
legend('High Frequency','Low Frequency')
xlabel('Time')
ylabel('Signals')
title('Audio aliasing');
soundsc(x1,fs1)
% % %%%
soundsc(x2,fs2)
Published with MATLAB® R2016a
%DIRAC FUNCTION
x...