Borrar filtros
Borrar filtros

Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

How to declare a constant variable in Data Store Memory ?

1 visualización (últimos 30 días)
David Morin
David Morin el 12 de Dic. de 2017
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
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 ?

Respuestas (0)

La pregunta está cerrada.

Community Treasure Hunt

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

Start Hunting!

Translated by