sin wave with difference sampling frequency?

 Akzeptierte Antwort

Wayne King
Wayne King am 29 Dez. 2013

2 Stimmen

Simply change the increments at which the time vector is sampled.
100 Hz sampling frequency:
Fs = 100;
t = 0:1/Fs:1;
x = cos(2*pi*10*t);
Now change Fs to 150 and so son
Fs = 150;
t = 0:1/Fs:1;
x = cos(2*pi*10*t);

2 Kommentare

MD Zaid
MD Zaid am 2 Mai 2019
why cos? why are we not using sin?
aadharsh parameshwar
aadharsh parameshwar am 31 Jan. 2020
Bearbeitet: aadharsh parameshwar am 31 Jan. 2020
in frequency domain sin we integrate to get cos
thats what i thnk... pls forgive me if my answer is wrong...

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (1)

RAJESHWARI G N
RAJESHWARI G N am 28 Mär. 2019

0 Stimmen

How to genarate sinusoidal signal with 50hz freq,2 unit magnitude using sampling rate 500hz and total no of points 1024. then compute DFT

Produkte

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by