2D Array Constant in Simulink
조회 수: 4 (최근 30일)
이전 댓글 표시
I imported an excel (2 Dimensional) table using the xlsread command. In simulink I then create a constant that poinst to the variable that contains the excel data. The simulink code i'm writting will eventually end up being deployed to an embedded target.
If I make multiple copies of this constant in simulink subsystems will the code generator make multiple instances of this table or will it know that there is only one table.
I don't want to kill my embedded target's memory by using this table the way that i am.
댓글 수: 0
채택된 답변
Kaustubha Govind
2011년 2월 9일
As long as you resolve the constant value to a workspace variable (and not inline the value into the Constant block's dialog parameter), I expect that the two blocks will reuse a single variable.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Data Import from MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!