Info

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

Local variable created as global in code.

1 visualización (últimos 30 días)
Namrata Biranje
Namrata Biranje el 9 de Mzo. de 2020
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
Hello,
In my model , I have created one local variable countA but in code it is generated as global.What configuration setting i need to do or what changes I need to do in my model. Accel Count is 4/2/1 depending upon the input.So every 5 ms I am checking the CountA and incrementing if it not equal to AccelCount.Once it is equal it will call the event and set to 0.
In configuration settings,I have tried all the values of " Optimize global data access".

Respuestas (1)

stozaki
stozaki el 10 de Mzo. de 2020
Editada: stozaki el 10 de Mzo. de 2020
In the flowchart, initialize as a condition action before the condition.

Etiquetas

Productos


Versión

R2010b

Community Treasure Hunt

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

Start Hunting!

Translated by