Frequency values from Time values
If I’m using FFT in matlab with optisystem.
Does this code accurate for “f” to get the frequency values that correspond to time values:
tau = InputPort1.Sampled.Time;
N = length (tau)
dtau = tau (2)- tau(1);
fs = 1/(dtau*N);
fc = InputPort1.Sampled.CentralFrequency;
fmax = fc + (fs* N/2);
fmin = fc – (fs* N/2);
f = (fmin:fs:fmax-fs);
Responses (0):
Login You must be logged in to reply to this topic.