Filter löschen
Filter löschen

It is possible to load c file in matlab

12 Ansichten (letzte 30 Tage)
Ravi
Ravi am 13 Nov. 2016
Beantwortet: Walter Roberson am 13 Nov. 2016
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?

Antworten (1)

Walter Roberson
Walter Roberson am 13 Nov. 2016
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.

Kategorien

Mehr zu Write C Functions Callable from MATLAB (MEX Files) finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by