Effacer les filtres
Effacer les filtres

How to correctly get a sine/cosine-signal in Simulink?

3 vues (au cours des 30 derniers jours)
Fangchao Liu
Fangchao Liu le 23 Mai 2020
Commenté : Fangchao Liu le 26 Mai 2020
I have already set a angle-signal in simulink, then i want to get the sine- and cosine-signal of this angle. I have tried two ways to get this signal (SinCos-Block and Matlab Function). But they were both strange and wrong. I'll put the pictures of angle-signals and results below. The first is original angle-signal and the second is Cosine-signal. How to correctly get the sine/cosine-signal in Simulink? Thx for ur help!
  2 commentaires
Jonas
Jonas le 26 Mai 2020
Are you sure it is wrong? Your angle changes fairly fast, which is why the cosine also changes fast. The input for the Cosine block is in radians.
Fangchao Liu
Fangchao Liu le 26 Mai 2020
Thanks for your help. If I make a Matlab-Function, which "y = cos(u)" is, the input also must be in radians?

Connectez-vous pour commenter.

Réponses (1)

madhan ravi
madhan ravi le 23 Mai 2020
https://youtu.be/iOmqgewj5XI , cos(...) is the sin(...) with phase shift.

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by