Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

How to declare a constant variable in Data Store Memory ?

조회 수: 2 (최근 30일)
David Morin
David Morin 2017년 12월 12일
마감: MATLAB Answer Bot 2021년 8월 20일
Hello,
In a Matlab Function Bloc, I initialize the output with the zero() function and a global variable :
global var
Output = zeros(var,1);
With var declared in a Data Store Memory bloc. My problem is that Output is inferred as a variable size vector, which it is not because var is a design parameter and thus is constant during simulation. Is there a way to specify Simulink that var doesn't change ?

답변 (0개)

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by