Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

x = readmatrix("Mixed Signal/samples_bootstrap_output_samples.

csv");
n = size(x, 1);
fs = 1/diff(x(1:2));

y = (fft(x(:,2)));
f = (0:n-1)/n*fs;
plot(f/1e6, abs(y));
xlabel('f(MHz)'); ylabel('Amp'); grid on

plot(f/1e6, 20*log10(abs(y)));
xlabel('f(MHz)'); ylabel('Amp (dB)'); grid on

1
%xlim([1.9 20])

You might also like