Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

How can I get a simple function I want in Simulink? The details are included.

1 Ansicht (letzte 30 Tage)
Hengfeng Wang
Hengfeng Wang am 31 Jul. 2015
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
The original values are from a simple function f(t+1)=f(t)+1
Now what I want is, if f(t)>7,f(t)=f(t-1)-0.4, and this function should be maintained for 3 seconds (3 times). After three seconds, the function will be again be f(t+1)=f(t)+1.
So how could I realise this in Simulink?
The results should be the same as the figure shown.
I appreciate your replies. Cheers!

Antworten (0)

Diese Frage ist geschlossen.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by