- Signal storage reuse
- Eliminate superfluous variables (expression folding)
- Enable local block outputs
- Reuse global/local block outputs
I don't want to use local variable in chart
1 次查看(过去 30 天)
显示 更早的评论
Hi, I am Student in graduated school.
I have some problem about code generation of chart.
when I generate code condition, [AAA > (BBB>>1)]
It generate code like this.
Local_tmp = BBB >> 1;
if(AAA > Local_tmp) {...}
to conclude, I don't want to make local variable in code. So, Isn't there any to set variable's data type?
0 个评论
采纳的回答
Jonas
2019-6-4
You need to check your 'Configuration Parameters', under the section 'Code Generation' part 'Optimization'. For your requirements, I believe you will need to check:
Depending on what you require, you may want to try these settings some more.
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!