Struggling to decide the sampling frequency for this fft plot
clear all
close all
clc
L=10;
n=1.45;
Can you guys help me with assigning the frequency values along the x axis , I am bit confused on how to determine the sampling frequency for a fft
c=2.9979e8;
dt = 6e-12;
T=10*2*L*n/c;
t = (-T/2/dt:1:T/2/dt)*dt;
Nt=round(T/dt);
fsine = 1e9;
vsine = 1;
phi = vsine*sin(2*pi*fsine*t);
EL1t=1.274e7*exp(1i*phi);
FP=fft(phi);
fs=(-Nt/2:1:Nt/2-1);
Z=plot(fs,fftshift(abs(fft(EL1t))));clear all
close all
clc
L=10;
n=1.45;
Can you guys help me with assigning the frequency values along the x axis , I am bit confused on how to determine the sampling frequency for a fft
c=2.9979e8;
dt = 6e-12;
T=10*2*L*n/c;
t = (-T/2/dt:1:T/2/dt)*dt;
Nt=round(T/dt);
fsine = 1e9;
vsine = 1;
phi = vsine*sin(2*pi*fsine*t);
EL1t=1.274e7*exp(1i*phi);
FP=fft(phi);
fs=(-Nt/2:1:Nt/2-1);
Z=plot(fs,fftshift(abs(fft(EL1t)))); clear all
close all
clc
L=10;
n=1.45;
Can you guys help me with assigning the frequency values along the x axis , I am bit confused on how to determine the sampling frequency for a fft
c=2.9979e8;
dt = 6e-12;
T=10*2*L*n/c;
t = (-T/2/dt:1:T/2/dt)*dt;
Nt=round(T/dt);
fsine = 1e9;
vsine = 1;
phi = vsine*sin(2*pi*fsine*t);
EL1t=1.274e7*exp(1i*phi);
FP=fft(phi);
fs=(-Nt/2:1:Nt/2-1);
Z=plot(fs,fftshift(abs(fft(EL1t)))); fft, plot MATLAB Answers — New Questions