Repeating sequence Error ?
6 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Chiara Valzecchi
am 5 Mai 2017
Beantwortet: ghulam murtaza
am 28 Mär. 2019
Hi all, I am following a tutorial where Repeating Sequence source is used to generate the input. I have done the following configuration:
Time values: [1 2 3 4 5 6 7 8 9 10] Output values: [1 2 2 2 4 4 4 5 5 10]
The scope shows:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/163783/image.png)
I was expecting to see Output values on Y axis. Is it a bug or Am I wrong?
Thank everyone
-Matlab 2015b 32bit-
0 Kommentare
Akzeptierte Antwort
Sachin Kumar
am 8 Mai 2017
This is expected behavior only. The execution depends on step size used to simulate the block, change the solver step size in configuration settings:
Solver option -> Type: Fixed-step
Fixed step-size: change from auto to 1
You will get output as you expected.
In your case it looks like solver type is variable-step in which solver adjusts step size to compute for results so the behavior is like that.
For more details on how block works you can check this link: http://in.mathworks.com/help/simulink/slref/repeatingsequence.html#bshfqei
0 Kommentare
Weitere Antworten (1)
ghulam murtaza
am 28 Mär. 2019
Use Scope of Simulink> Commonly used block , not use time scope for display
0 Kommentare
Siehe auch
Kategorien
Mehr zu Sources finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!