update a parameter in function block each timestep in simulink
Ältere Kommentare anzeigen
I have a parameter or a variable (T) which should increase or decrease with a (delta_T) and it has an initial value of (T_0).
So, I defined (delta_T = ....) and (T_0 = 20) and it should be a loop (T = T + delta_T) which updates the value of T each time step.
I will put this function in a block in Simulink.
I hope my question is clear and many thanks in advance.
1 Kommentar
Ameen Bassam
am 17 Mär. 2023
Antworten (1)
Fangjun Jiang
am 16 Mär. 2023
0 Stimmen
Use the "Ramp" block to generate such a signal.
1 Kommentar
Ameen Bassam
am 16 Mär. 2023
Kategorien
Mehr zu Simulink finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!