How to make mex file of C program in matlab
1 回表示 (過去 30 日間)
古いコメントを表示
I have to run a matlab code namely "huff2mat.m" but it uses a C file namely "unravel.c". It also asks me to make a mex file of it. How can i use the file "unravel.c" in matlab.
0 件のコメント
採用された回答
Junaid
2012 年 4 月 24 日
if it is mex file, its mean C code for matlab. then simply compile it by this command in matlab editor.
mex unravel.c;
then you can call unravel as function in matlab.
1 件のコメント
Jan
2012 年 4 月 24 日
And if you didn't do it before: "mex -setup". This setup requires and installed compiler, but this is perhaps another question.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Introduction to Installation and Licensing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!