Hi everyone, I'm trying to write matlab program that sends sine waves to any circuit and evaulates desired component's impedance in phase-frequency and amplitude-frequency.

Now, I'm able to communicate with my 33522b waveform generator and I can make sweep on it via matlab. However, I have a problem with getting data in terms of phase-frequency and I don't have any clue about it.

Is there any guide or helpful matlab script about it ? How can i adjust my horizontal axis to frequency domain ?

Thanks in advance.

Now, I'm able to communicate with my 33522b waveform generator and I can make sweep on it via matlab. However, I have a problem with getting data in terms of phase-frequency and I don't have any clue about it.

Is there any guide or helpful matlab script about it ? How can i adjust my horizontal axis to frequency domain ?

Thanks in advance.

- You cross-posted to two forums. I have deleted the other post.

- You don't indicate what scope you are using or what you have tried.

Most Keysight (and Agilent) scopes have an FFT or Spectrum function available. Have you looked at those?

Is this for a school project?

Al