Effacer les filtres
Effacer les filtres

How to make mex file of C program in matlab

1 vue (au cours des 30 derniers jours)
Mohammad Rafi Lone
Mohammad Rafi Lone le 24 Avr 2012
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.

Réponse acceptée

Junaid
Junaid le 24 Avr 2012
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 commentaire
Jan
Jan le 24 Avr 2012
And if you didn't do it before: "mex -setup". This setup requires and installed compiler, but this is perhaps another question.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Introduction to Installation and Licensing dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by