Filter löschen
Filter löschen

Update a fixed dimension vector Simulink

1 Ansicht (letzte 30 Tage)
Giorgio Concu
Giorgio Concu am 6 Dez. 2017
Kommentiert: Giorgio Concu am 11 Dez. 2017
Hi! I'm using Simulink and I'm counting the cycles and I have to rearrage them base on the torque level. So, I have to update a vector 125x1 (one for each class) and put inside the cumulative number of cycles performed in the corresponding class. How can I do it? Thank you!

Akzeptierte Antwort

Nick Choi
Nick Choi am 8 Dez. 2017
A block that may be helpful for this could be the 'Assignment' block:
This would allow you to assign values to specific elements of the signal.
  1 Kommentar
Giorgio Concu
Giorgio Concu am 11 Dez. 2017
I already considered this option, but the 'Assignment' block just repleace the old value with the new one, while I need to increment it step by step. Any other suggestion?

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)


Community Treasure Hunt

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

Start Hunting!

Translated by