Signal sine wave ??

6 vues (au cours des 30 derniers jours)
Zerdani Mohammed
Zerdani Mohammed le 29 Juil 2019
Commenté : Fangjun Jiang le 30 Juil 2019
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 commentaire
Adam Danz
Adam Danz le 29 Juil 2019

Connectez-vous pour commenter.

Réponses (1)

Fangjun Jiang
Fangjun Jiang le 29 Juil 2019
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 commentaires
Zerdani Mohammed
Zerdani Mohammed le 30 Juil 2019
but i need to take the frequence as an random variable between 50 and 250 Hz ??
Fangjun Jiang
Fangjun Jiang le 30 Juil 2019
then multiply the Clock with 2*pi and the Random Number block.

Connectez-vous pour commenter.

Tags

Produits


Version

R2014a

Community Treasure Hunt

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

Start Hunting!

Translated by