Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Local variable created as global in code.

1 回表示 (過去 30 日間)
Namrata Biranje
Namrata Biranje 2020 年 3 月 9 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
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".

回答 (1 件)

stozaki
stozaki 2020 年 3 月 10 日
編集済み: stozaki 2020 年 3 月 10 日
In the flowchart, initialize as a condition action before the condition.

この質問は閉じられています。

製品


リリース

R2010b

Community Treasure Hunt

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

Start Hunting!

Translated by