How can i determine the amplitude, phase, period, sampling frequency, circular frequency (Hz), and angular frequency (rad/sec) of the sine wave
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
BINTUZZAIN11 ORIANTO
am 25 Okt. 2014
Bearbeitet: BINTUZZAIN11 ORIANTO
am 25 Okt. 2014
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
0 Kommentare
Akzeptierte Antwort
Image Analyst
am 25 Okt. 2014
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 Kommentar
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Spectral Measurements finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!