How do I find the frequency of a Sine wave input by a user?

1 view (last 30 days)
I am a beginner in MATLAB .
I am trying to take an input from user i.e a sine wave, and want my code to calculate its frequency.
If the user gives the input as...
x=sin(2*pi*1000*t) %%%%here 1000 is the frequency....
...how do I extract the frequency?
please help me

Answers (0)

Categories

Find more on Fourier Analysis and Filtering in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!