How can i determine the amplitude, phase, period, sampling frequency, circular frequency (Hz), and angular frequency (rad/sec) of the sine wave

1 回表示 (過去 30 日間)
i have this code
M=10; %samples/sec
n=-3:1/M:3;
A=2;
phase=0;
f=1;
x=A * sin(2*pi*f*n + phase);
stem(n,x,'linewidth', 2)
title('Discrete-Time Sine Wave: A sin(2*\pi*f*n + \phi)')
xlabel('Time Index')
ylabel('Signal Amplitude')
axis([n(1) n(end) -A A])
grid

採用された回答

Image Analyst
Image Analyst 2014 年 10 月 25 日
Have you taken the Fourier transform or called pwelch()? Try these helpful tutorial links on Fourier Transforms:
Also look up MATLAB demos and webinars where they talk about spectral analysis and the pwelch() function (in the Signal Processing Toolbox) - they just held one a couple of weeks ago. <http://www.mathworks.com/searchresults
  1 件のコメント
BINTUZZAIN11 ORIANTO
BINTUZZAIN11 ORIANTO 2014 年 10 月 25 日
編集済み: BINTUZZAIN11 ORIANTO 2014 年 10 月 25 日
oh i didn't take it yet. just a basic one
but, thank you anyway. i'll try look up the links first

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSpectral Measurements についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by