![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1533172/image.png)
how can i create a variable size Buffer?
조회 수: 11 (최근 30일)
이전 댓글 표시
Hallo, when i run my Simulink model, i get an Error with the Buffer Block as shown in the capture (Buffer does not support variable Size signals).
i want to create a non overlapping variable Size Buffer, which adds the remaining overflow 'z' in the beginning of the next frame.
Can anyone give me tips on how to do it and help me in anyway.
I appreciate every help. Thanks in advance! ![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1100780/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1100780/image.png)
댓글 수: 0
답변 (1개)
Brahmadev
2023년 11월 8일
I understand that you would like to implement a variable-sized buffer. “Buffer” block does not support variable size input.
An alternative approach is to create a buffer that accepts variable size input is using a "MATLAB Function" block. I have attached a working Simulink example of how this can be implemented using a "MATLAB Function" block.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1533172/image.png)
This example creates a variable-size input using the “testInput” MATLAB Function and sends it to the “Buffer” that is created using a MATLAB Function block. To verify the output in MATLAB, a “To Workspace” block is used.
Hope this helps in resolving your issue!
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Sources에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!