- 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 visualización (últimos 30 días)
Mostrar comentarios más antiguos
TaeHee Kwun
el 30 de Mayo de 2019
Comentada: TaeHee Kwun
el 4 de Jun. de 2019
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 comentarios
Respuesta aceptada
Jonas
el 4 de Jun. de 2019
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.
Más respuestas (0)
Ver también
Categorías
Más información sobre Simulink Coder en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!