필터 지우기
필터 지우기

can i get mex files in matlab format?

조회 수: 1 (최근 30일)
sam sdr
sam sdr 2020년 7월 30일
댓글: sam sdr 2020년 7월 30일
hello;
i have a question about mex files, i would like to know are mex files with compiler become just executable for matlab or i can see them in matlab format not c or c++ for example?
becuase im not familiar with c or c++ language
if there is a solution to tackle this problem can you help me please?

채택된 답변

James Tursa
James Tursa 2020년 7월 30일
Mex files are compiled (i.e., machine language) DLL files. You cannot view them in MATLAB m-file format. If you have the C/C++ source code for the mex file, you can view that of course, but it will not in general resemble MATLAB m-file format code either.
  댓글 수: 3
James Tursa
James Tursa 2020년 7월 30일
The mex file itself (e.g., with a file name like mymexfile.mexw64) is compiled and is machine language, yes. There is no way to see this as a MATLAB m-file format. The source code for the mex file is probably written in C or C++ or possibly Fortran ... and that will not look like MATLAB m-file code either. At most there might be comments in the source code that will give equivalent m-file code for the functionality of the mex routine, but only if the author put such comments there.
sam sdr
sam sdr 2020년 7월 30일
Thanks a lot for your useful response.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Call C++ from MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by