sin wave with difference sampling frequency?

How can generate sine() with 100 ,150,1000,1500 ,sampling frequency ?

 採用された回答

Wayne King
Wayne King 2013 年 12 月 29 日

2 投票

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 件のコメント

MD Zaid
MD Zaid 2019 年 5 月 2 日
why cos? why are we not using sin?
aadharsh parameshwar
aadharsh parameshwar 2020 年 1 月 31 日
編集済み: aadharsh parameshwar 2020 年 1 月 31 日
in frequency domain sin we integrate to get cos
thats what i thnk... pls forgive me if my answer is wrong...

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

その他の回答 (1 件)

RAJESHWARI G N
RAJESHWARI G N 2019 年 3 月 28 日

0 投票

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

カテゴリ

ヘルプ センター および File ExchangeMeasurements and Spatial Audio についてさらに検索

製品

タグ

質問済み:

2013 年 12 月 29 日

編集済み:

2020 年 1 月 31 日

Community Treasure Hunt

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

Start Hunting!

Translated by