how to design swap logic with simulink blocks ?
2 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
Renato SL
2019-5-28
Take a look at the MATLAB Function block (https://www.mathworks.com/help/simulink/slref/matlabfunction.html)
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!