view .mexw32 (MEXW32 File) in Matlab R2011a

How can I view a file with ".mexw32" extension in Matlab R2011a? When I run it, this message appears:
??? Error using ==> Nonlin_Block15 MEX level2 S-function "Nonlin_Block15" must be called with at least 4 right hand arguments
What can I do?

 채택된 답변

Jan
Jan 2012년 7월 16일
편집: Jan 2012년 7월 16일

0 개 추천

If you do not have the source code, but only the compiled mexw32 file, you need to ask the author for the code. If he or she does not want to share the code, offering money is the usual method to initiate a collaboration.

추가 답변 (2개)

Andreas Goser
Andreas Goser 2012년 7월 16일
편집: Andreas Goser 2012년 7월 16일

0 개 추천

You can't view this file - or at least it would mean nothing to you.
You can view and edit the source code likely a C code.
So for myname.mexw32, it is myname.c

댓글 수: 3

Mohammad Sadegh
Mohammad Sadegh 2012년 7월 16일
thank you, but how I can view the file in C code? I only have the .mexw32 file best regards
Andreas Goser
Andreas Goser 2012년 7월 16일
Then you need to contact the author of the s function. One of multiple reasons for s fucntions is IP protection.
Mohammad Sadegh
Mohammad Sadegh 2012년 7월 16일
thank yooou

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

Kaustubha Govind
Kaustubha Govind 2012년 7월 16일

0 개 추천

It looks like what you have is an S-function. You cannot run an S-function directly from MATLAB, it can only be called using an S-function block in Simulink.

댓글 수: 2

Mohammad Sadegh
Mohammad Sadegh 2012년 7월 16일
yes it is a S-function and I can call it in Simulink,but I want to know how the code is written so I can use it in my research. Hope u can help me
Kaustubha Govind
Kaustubha Govind 2012년 7월 16일
See Andreas' answer.

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

카테고리

도움말 센터File Exchange에서 Simulink Coder에 대해 자세히 알아보기

제품

태그

질문:

2012년 7월 16일

Community Treasure Hunt

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

Start Hunting!

Translated by