Is it possible to call specific C functions in matlab?
1 回表示 (過去 30 日間)
古いコメントを表示
Hi there,
I want to Simulate GPS signal in Matlab and have written a code which seems to be working partially. The problem is in the premable of the data which is causing the issue during the subframe identification process. I wanted to ask if there is anyway to call and use a function that is already written in C langage.
Is it possible? can we do it? If yes can you please provide me some reference material or guidance on how to do it?
I would like to call a few functions such as GenerateNavMessage from the following link:
Thank you in advance
2 件のコメント
dpb
2022 年 5 月 20 日
You have to write a mex wrapper function that calls the C code.
How easy this is will depend upon the data passing chosen in the implementation of the function -- straight numeric types can be handled pretty easily; if it uses C structures you'll have more issues to resolve.
Antonio Niro
2022 年 5 月 20 日
you can use the Legacy Code tool to do exactly this. Integrate C Functions Using Legacy Code Tool - MATLAB & Simulink - MathWorks Italia
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Get Started with DSP System Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!