when the stop time is 10 seconds,it gives a proper sine curve, but when I increase the time it gives the sine graph unlike sine graph.Pls help me with this, why is this happening?
why does sine curve not properly plotted in simulink
137 views (last 30 days)
Show older comments
Accepted Answer
Shubham Gupta
on 21 Jun 2019
I reckon that you are using variable time step so when you increase your time, time step also increases. So, the curve is not as smooth as you have expected. To solve this use fixed time step and keep it small to get smoother curve.
Go to File->Simulink Preferences->Under Sover option, choose "fixed step" type and then choose fixed time step like 1ms
4 Comments
More Answers (0)
See Also
Categories
Find more on Sources in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!