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.

 채택된 답변

Junaid
Junaid 2012년 4월 24일

2 개 추천

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

Jan
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.
Divyashree
Divyashree 2024년 12월 31일

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 2024년 12월 31일
편집: Walter Roberson 2024년 12월 31일

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

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

질문:

2012년 4월 24일

편집:

2024년 12월 31일

Community Treasure Hunt

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

Start Hunting!

Translated by