Why does Simulink generate a sine wave as a triangle wave?
Show older comments
Hey community, i am new to Simulink. I wanted to generate a sine wave : sin(15*2*pi*t). But I always get a triangle wave even the amplitude is incorrect.



(see pictures)
Is there something I'm doing wrong?
thank you!
2 Comments
Stephen Ofori
on 17 Jan 2019
I'm also having the same problem here, it works fine when I take the pi
But generate a triangular wave when the pi is there
Yazdan Tanveer
on 23 Dec 2019
You have to take care of “simulation stop time”. Simulink sets the step size by default according to simulation stop time. If you want to change it manually regardless of simulation stop time, you have to adjust the ‘sample time’ in the properties of the sine block.
Accepted Answer
More Answers (0)
Categories
Find more on Signal Generation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!