Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
Problem with Delay Block inside a If-Action Subsystem using variable-sized arrays
조회 수: 1 (최근 30일)
이전 댓글 표시
Hello community,
I need your help with the following problem. I am currently working inside an "If-Action Subsystem", which gets triggered once in a while. Inside I am working with variable-sized arrays (e.g. the output matrix TWaypoints, see picture below). What I want to do, is to save the variable-sized variable "t" for one timestep (I want to use the "last" value of t in another Matlab function also inside this subsystem). I tried to do this by using a Unit Delay block. However, the following error occurs (see picture).
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/191883/image.png)
When I follow the instructions given in the error message and change the "Propogate sizes of variable-size-signals" parameter of the Subsystem, I receive a similar error, which advises me to switch the just changed parameter back:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/191884/image.png)
Now I am stuck inside this error loop. Does anybody knows what I can do differently to in order to hold the variable size array?
Thank you in advance!
댓글 수: 0
답변 (0개)
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!