How to design Swap logic with Simulink blocks to get the same code with Embedded coder?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Sasidhar Duggireddy
am 28 Mai 2019
Kommentiert: Sasidhar Duggireddy
am 3 Jun. 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 Kommentare
Akzeptierte Antwort
Pranjal Priyadarshi
am 3 Jun. 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:
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Deployment, Integration, and Supported Hardware finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!