Is it possible to call specific C functions in matlab?

조회 수: 1 (최근 30일)
Imtiaz nabi
Imtiaz nabi 2022년 5월 20일
댓글: Antonio Niro 2022년 5월 20일
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
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.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with DSP System Toolbox에 대해 자세히 알아보기

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by