How do I extract the amplitude and the frequency from a sine function?
8 ビュー (過去 30 日間)
古いコメントを表示
I have this sine function:
10*sin(1000*t)
How do I extract the Amp=10 and the frequency=1000 as variables from that function?
Thanks.
1 件のコメント
William Rose
2021 年 4 月 15 日
@MAC, your quesiton does not appear to be about Matlab as much as math. Unless you are talking about automated parsing of code, which I doubt. It is a math question. The site is not a homework-answering service. By the way, the frequency of that function is not 1000, if your units are cycles per unit time.
回答 (1 件)
Star Strider
2021 年 4 月 15 日
Use the fft function. Calculated, interpreted, and plotted correctly, it will give all that information.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Fourier Analysis and Filtering についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!