フィルターのクリア

how to design swap logic with simulink blocks ?

1 回表示 (過去 30 日間)
Sasidhar Duggireddy
Sasidhar Duggireddy 2019 年 5 月 22 日
回答済み: Renato SL 2019 年 5 月 28 日
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?

回答 (1 件)

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

カテゴリ

Help Center および File ExchangeSimulink Coder についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by