How to make mex file of C program in matlab

1 visualización (últimos 30 días)
Mohammad Rafi Lone
Mohammad Rafi Lone el 24 de Abr. de 2012
Editada: Walter Roberson el 31 de Dic. de 2024
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.

Respuesta aceptada

Junaid
Junaid el 24 de Abr. de 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.
  3 comentarios
Divyashree
Divyashree el 31 de Dic. de 2024

I am facing the samme issue.Which compiler is suitable for matlab R2014a windows 10(64 bit). So i can download and install

Walter Roberson
Walter Roberson el 31 de Dic. de 2024
Editada: Walter Roberson el 31 de Dic. de 2024

https://www.mathworks.com/content/dam/mathworks/mathworks-dot-com/support/sysreq/files/SystemRequirements-Release2014a_SupportedCompilers.pdf lists the r2014a compatible compilers. Scroll down to get to the 64 bit area.

The supported compilers that work with Windows 10 are all Microsoft Professional releases, except for sdk 7.1. You will have some trouble installing sdk 7.1 in Windows 10; see https://www.mathworks.com/matlabcentral/answers/233850-how-can-i-install-sdk-7-1-on-windows-10

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Introduction to Installation and Licensing en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by