Signal sine wave ??

조회 수: 6 (최근 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개)

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 CenterFile Exchange에서 Sources에 대해 자세히 알아보기

태그

제품


릴리스

R2014a

Community Treasure Hunt

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

Start Hunting!

Translated by