Info
Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.
hasChanged detecting further back than expected
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Using hasChanged command is causing a transition when I do not expect it to. This model is running discretely with a dt=0.01. The input (Apple) is a sin wave with a magnitude of 2 and a freq of 1.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/146509/image.png)
trans 1 is being taken 1 dt after trans 2 but the value of b is the same as it was at the end of the last dt.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/146510/image.png)
Windows 7 Matlab 2012b 32bit
0 Kommentare
Antworten (0)
Diese Frage ist geschlossen.
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!