Anyone of you can no digital signal processing. I started to write matlab code and would like to have made a frequency axis at x axis. The task is about finding noise components, I write just the code below
Note: "e" is a variable with 20000 different numbers in
Code:
clear, close all; clc
load projektopgave_A
fsample=2000;
ts=1/fsample;
N=length(e);
x=[0:N-1]*ts;
y=e;
fanalysis =([0:N-1]*20000)/N;
DFT=fft(y,20000);
figure(2)
plot(fanalysis, abs(DFT));
ylabel('Amplitude (volt)');
title('Plot af dftfunktionen');
grid on;