It is possible to load c file in matlab
12 ビュー (過去 30 日間)
古いコメントを表示
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?
0 件のコメント
回答 (1 件)
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.
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!