How to design Swap logic with Simulink blocks to get the same code with Embedded coder?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Sasidhar Duggireddy
el 28 de Mayo de 2019
Comentada: Sasidhar Duggireddy
el 3 de Jun. de 2019
can any one tell me how to design below swap logic with simulink blocks, to get same code with embedded coder.
void Swap(int *p,int *q)
{
temp = *p;
*p = *q;
*q = temp;
}
is there any possibulity to get the code same like above with embedded coder?
0 comentarios
Respuesta aceptada
Pranjal Priyadarshi
el 3 de Jun. de 2019
You can always use MATLAB function block to design the swap logic.You only need to write the swap logic in the function block. For more information on this you can use the following documentation:
Más respuestas (0)
Ver también
Categorías
Más información sobre Deployment, Integration, and Supported Hardware en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!