How to design Swap logic with Simulink blocks to get the same code with Embedded coder?
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Sasidhar Duggireddy
il 28 Mag 2019
Commentato: Sasidhar Duggireddy
il 3 Giu 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 Commenti
Risposta accettata
Pranjal Priyadarshi
il 3 Giu 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:
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Deployment, Integration, and Supported Hardware in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!