Update a fixed dimension vector Simulink

조회 수: 1 (최근 30일)
Giorgio Concu
Giorgio Concu 2017년 12월 6일
댓글: Giorgio Concu 2017년 12월 11일
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!

채택된 답변

Nick Choi
Nick Choi 2017년 12월 8일
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
Giorgio Concu
Giorgio Concu 2017년 12월 11일
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?

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Sources에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by