Signal sine wave ??

4 ビュー (過去 30 日間)
Zerdani Mohammed
Zerdani Mohammed 2019 年 7 月 29 日
コメント済み: Fangjun Jiang 2019 年 7 月 30 日
Hi
how can i generate the signal sine wave with a variable frerquency, i need to use the function matlab with Clock for the time. ??
Thnks
  1 件のコメント
Adam Danz
Adam Danz 2019 年 7 月 29 日

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

回答 (1 件)

Fangjun Jiang
Fangjun Jiang 2019 年 7 月 29 日
If there is no constrain, you could multiple the Clock with 2*pi*f, where f is your frequency and then feed it to an "Interpreted MATLAB Fcn" block where you specify it as "sin" or "sin(u)". You could implement "f" as a constant, or a parameter or an Inport.
  2 件のコメント
Zerdani Mohammed
Zerdani Mohammed 2019 年 7 月 30 日
but i need to take the frequence as an random variable between 50 and 250 Hz ??
Fangjun Jiang
Fangjun Jiang 2019 年 7 月 30 日
then multiply the Clock with 2*pi and the Random Number block.

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

カテゴリ

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

タグ

製品


リリース

R2014a

Community Treasure Hunt

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

Start Hunting!

Translated by