Borrar filtros
Borrar filtros

how to design swap logic with simulink blocks ?

1 visualización (últimos 30 días)
Sasidhar Duggireddy
Sasidhar Duggireddy el 22 de Mayo de 2019
Respondida: Renato SL el 28 de Mayo 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?

Respuestas (1)

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

Categorías

Más información sobre Simulink Coder en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by