Borrar filtros
Borrar filtros

Cos function in simulink

117 visualizaciones (últimos 30 días)
Oskar
Oskar el 15 de Dic. de 2017
Comentada: John D'Errico el 9 de Abr. de 2024
Is there any way I could get a cosine wave source in Simulink rather than just a sine wave?

Respuestas (1)

Star Strider
Star Strider el 15 de Dic. de 2017
Editada: Star Strider el 15 de Dic. de 2017
Take the derivative of the sine?
Otherwise: Sine, Cosine (link).
  8 comentarios
Star Strider
Star Strider el 19 de Dic. de 2017
An even easier way to do it is to select the continuous-time Sin block from Sources, then use Block Parameters (Sin) set the Amplitude, Frequency, and then set Phase to pi/2. That defines a Cosine source!
I did this, and verified it with the Scope block that it was indeed producing a cosine curve.
I have not used Simulink in a few years, and it changed in the last few releases. It took me a while to explore it.
John D'Errico
John D'Errico el 9 de Abr. de 2024
Exactly. Cosine can be viewed as just a phase shifted sine.

Iniciar sesión para comentar.

Categorías

Más información sobre General Applications en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by