필터 지우기
필터 지우기

It is possible to load c file in matlab

조회 수: 12 (최근 30일)
Ravi
Ravi 2016년 11월 13일
답변: Walter Roberson 2016년 11월 13일
i have a c file named rrr.c , it is possible to load directly in matlab. possible means, how to load that file to matlab?

답변 (1개)

Walter Roberson
Walter Roberson 2016년 11월 13일
You can load the text of it using fileread() or low level I/O routines such as fopen/fgetl .
You cannot directly call any function defined in the file. To call upon the functions there, you need to either create a mex interface to the routines, or you need to use loadlibrary() . Both methods require that the code be compiled.

카테고리

Help CenterFile Exchange에서 Write C Functions Callable from MATLAB (MEX Files)에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by