Signal sine wave ??
이전 댓글 표시
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
2019년 7월 29일
https://www.mathworks.com/matlabcentral/answers/157727-generating-a-6-second-sine-wave#answer_154276
Not sure how you'd like to implement clock(), though.
답변 (1개)
Fangjun Jiang
2019년 7월 29일
1 개 추천
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
2019년 7월 30일
Fangjun Jiang
2019년 7월 30일
then multiply the Clock with 2*pi and the Random Number block.
카테고리
도움말 센터 및 File Exchange에서 Sources에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!