how to design swap logic with simulink blocks ?
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponses (1)
Renato SL
le 28 Mai 2019
Take a look at the MATLAB Function block (https://www.mathworks.com/help/simulink/slref/matlabfunction.html)
0 commentaires
Voir également
Catégories
En savoir plus sur Simulink Coder dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!