Azzera filtri
Azzera filtri

how to design swap logic with simulink blocks ?

1 visualizzazione (ultimi 30 giorni)
Sasidhar Duggireddy
Sasidhar Duggireddy il 22 Mag 2019
Risposto: Renato SL il 28 Mag 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?

Risposte (1)

Renato SL
Renato SL il 28 Mag 2019
Take a look at the MATLAB Function block (https://www.mathworks.com/help/simulink/slref/matlabfunction.html)

Categorie

Scopri di più su Simulink Coder 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!

Translated by