Simulink and Variable Sized Global Variables
이전 댓글 표시
I have a M-Function which reads some data at each time step, stores it in a growing dictionary (A = [A; a], where 'a' is the new data) and then uses it to produce an output.
I would like to use this function in Simulink, however I cannot see a way to create a variable sized global variable that A needs to be.
Could someone please point me in the correct direction?
채택된 답변
추가 답변 (1개)
Guy Rouleau
2012년 1월 10일
0 개 추천
Simulink supports variable size signals. However you need to specify a maximum size.
This topic is covered here:
If you want, you can use variable size also in the MATLAB Function block:
카테고리
도움말 센터 및 File Exchange에서 Simulink Functions에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!