is there any where to convert an matlab algorithm to working on my microcontroller?
古いコメントを表示
hi everyone
matlab is known form it's lots of algorithms ..but i want to make it benefit on the hardware..
so can i convert the simulink block that contains an matlab algorithm to Embedded C code to use it on my pic16f877A
回答 (2 件)
Walter Roberson
2011 年 10 月 5 日
1 投票
I believe the MATLAB algorithm would have to have been coded with the Embedded MATLAB Subset.
Kaustubha Govind
2011 年 10 月 6 日
0 投票
What kind of Simulink block is it? Double-click on the block to see whether it opens up an Editor (in which case, you can generate C code from the MATLAB code using MATLAB Coder), or a block dialog that says S-function (in which case, you may actually want to convert it to use a MATLAB Function Block instead). Like Walter mentioned, your code must only contain the MATLAB Language subset that is supported for code generation.
3 件のコメント
Mohamed
2011 年 10 月 6 日
Kaustubha Govind
2011 年 10 月 10 日
What made you think that it was a MATLAB algorithm? The block is support for code-generation, so you shouldn't have to do anything special to generate code from the block.
Fangjun Jiang
2011 年 10 月 10 日
You do need the toolbox of Real-Time Workshop or Simulink Coder as it is called now.
カテゴリ
ヘルプ センター および 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!