I am working on homework for a physics lab course and I am asked to write a python function which will produce an amplitude v.s frequency plot. In a previous problem I wrote a function which simulates data from a sine wave in the form of a time series; the new function should be able to take this data as input and produce a plot.(adsbygoogle = window.adsbygoogle || []).push({});

I am somewhat at a loss as to where to begin with this problem. I have worked some with amplitude vs frequency plots in the lab, but I haven't been asked to produce one before and after a couple hours I still don't have a starting point.

To be clear, I'm not asking for programming advice, I'll figure out the code after I know what I'm doing conceptually.

I have calculated ∆v, the frequency resolution which depends on the sampling frequency and number of data points taken but I am stuck on this: given a set of data points from a sine wave, how do I extract the amplitude of each frequency component?

Sorry if the language used here is somewhat unclear, I will happily clarify anything doesn't make sense above.

**Physics Forums - The Fusion of Science and Community**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# I How does one make an Amplitude vs. Frequency plot?

Have something to add?

Draft saved
Draft deleted

Loading...

Similar Threads - does Amplitude Frequency | Date |
---|---|

I What does the vertical line in this equation mean? | Feb 28, 2018 |

How does this simplification work? | Dec 19, 2017 |

B Confused by this: What does 10^10^79 mean? | Dec 1, 2017 |

I Amplitude decaying sine function | Nov 26, 2017 |

I Proof: 0.9999 does not equal 1 | Nov 22, 2017 |

**Physics Forums - The Fusion of Science and Community**