How to open .mexw64 file with Matlab?

조회 수: 380 (최근 30일)
Keke Zu
Keke Zu 2018년 7월 11일
편집: antlhem 2020년 7월 31일
Hi, I would like to know how to open .mexw64 file with Matlab?
  댓글 수: 2
Jan
Jan 2018년 7월 11일
Please do not close questions, which got an answer already.
mahdi
mahdi 2020년 6월 9일
Hey Jan
I have a problem with 'mex' file and would like to open it to fix if possible! .. Ill apperciate you if give me a tip ....
I donwlod mexcgns/cgns4m files from https://github.com/meshkit/cgns4m/archive/master.tar.gz. after Run you will see :
MEX completed successfully.
Invalid MEX-file
'C:\Users\mehgab\Desktop\cgns4m-master\cgns4m-master\cgnslib_mex.mexw64':
Missing symbol 'H5P_CLS_FILE_ACCESS_ID_g' in 'C:\Program
Files\MATLAB\R2018b/bin/win64\hdf5.dll' required by
'C:\Users\mehgab\Desktop\cgns4m-master\cgns4m-master\cgnslib_mex.mexw64'

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

답변 (2개)

Jan
Jan 2018년 7월 11일
You do not "open" such a file, because it is a compiled function. You call it exactly as any other Matlab function.
Why do you want to "open" the file?
  댓글 수: 2
antlhem
antlhem 2018년 7월 11일
편집: Jan 2018년 7월 12일
Hi Jan, do you know how to use a variable input for a MEX file function. I have posted my question here: https://uk.mathworks.com/matlabcentral/answers/408136-ho-to-use-a-dynamic-array-in-a-mex-file-function
I hope you could help me.
Jan
Jan 2018년 7월 12일
This means, that you are working with codegen and do not write the C-Mex function manually.

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


Maria
Maria 2020년 7월 31일
편집: Maria 2020년 7월 31일
Hi,
maybe I can help you, because I came across this post when looking for "how to open a mex file". Now I understood that is a compiled function (thanks Jan), but I still wanted to double check the underslying .m file where this function was created from.
My mex file was created by using the Matlab coder. I created it from a .m file. Matlab generated automatically a folder named "codegen", and inside this there is a folder named "mex". In this folder, I can find the folder that has the same name as my original Matlab file. Inside this folder, I see the "html" folder and there, finally, I find the report.mldatx. In this report, I can double-check the original .m function associated to the compiled mex file.
Hope this helps!
BR
Maria
  댓글 수: 1
antlhem
antlhem 2020년 7월 31일
편집: antlhem 2020년 7월 31일
Hi Maria, in the following link you can see how I organised my files in order to use a mex file function. I hope this contributes as well. https://uk.mathworks.com/matlabcentral/answers/408136-ho-to-use-a-dynamic-array-in-a-mex-file-function?s_tid=prof_contriblnk

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

카테고리

Help CenterFile Exchange에서 MATLAB Compiler에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by