why does sine curve not properly plotted in simulink

54 ビュー (過去 30 日間)
Shivank Anchal
Shivank Anchal 2019 年 6 月 20 日
コメント済み: Aditya Yadav 2021 年 6 月 1 日
sine.PNG
  1 件のコメント
Shivank Anchal
Shivank Anchal 2019 年 6 月 20 日
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?

サインインしてコメントする。

採用された回答

Shubham Gupta
Shubham Gupta 2019 年 6 月 21 日
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 件のコメント
Shubham Gupta
Shubham Gupta 2019 年 6 月 27 日
I am not if this info is still relevant but I reckon you are using so you might have to access solver options using different method. couple of methods that might work are:
Method 1 :
If you can see a gear type button in the simulink's toolbar, you can use that to change the sample time
Method 2 :
Go to Simulink->Configuration Parameter
Method 3 :
Press Ctrl+F to open Configuration Parameters directly
I hope it works !
Aditya Yadav
Aditya Yadav 2021 年 6 月 1 日
Really helpful..Thanks

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGeneral Applications についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by