How to design Swap logic with Simulink blocks to get the same code with Embedded coder?
1 回表示 (過去 30 日間)
古いコメントを表示
Sasidhar Duggireddy
2019 年 5 月 28 日
コメント済み: Sasidhar Duggireddy
2019 年 6 月 3 日
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 件のコメント
採用された回答
Pranjal Priyadarshi
2019 年 6 月 3 日
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:
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Deployment, Integration, and Supported Hardware についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!