i have magnetics field data, and i have to change the data from time domain to frequency domain, so i will use fft. but, i don't know how to write the code

Answers (1)

See the R2015a documentation for fft (<— link). Note especially the code between the top two plot figures. It has everything you need.

This question is closed.

Closed:

on 20 Aug 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!