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
조회 수: 44 (최근 30일)
이전 댓글 표시
![sine.PNG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/225679/sine.png)
채택된 답변
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
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 !
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 General Applications에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!