Home Forums SYSTEM Frequency values from Time values

Frequency values from Time values

Profile Photo
(joined May 2014)
Participant

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):

    • #15997
      Profile Photo
      Abdallah Ismail
      Participant

      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);

Login You must be logged in to reply to this topic.