필터 지우기
필터 지우기

Convert the m-file into mex32 file for S-function block

조회 수: 6 (최근 30일)
Kanchibhotla Chandra Sekhar
Kanchibhotla Chandra Sekhar 2013년 5월 28일
I want to convert my m-file (suppose i have an function with N-inputs and N-outputs written in embeeded code in simulink or m-function) into mex32 file (with both mex32 & dll attached) for the S - function usage. My purpose is to hide the source code of my m-file, so that other user can work using the S-function provided with mex32 files. I have gone through the S-function examples of the m-file, but it looks like total different and even it is showing the m-file. Can there is a simple procedure to convert into mex32 for using S-function.

답변 (1개)

Kaustubha Govind
Kaustubha Govind 2013년 5월 29일
Why not just pcode your MATLAB-file and send just the .p file to your users?
  댓글 수: 2
Kanchibhotla Chandra Sekhar
Kanchibhotla Chandra Sekhar 2013년 5월 30일
No, actually i need mex32 files for the other application can also used this. Can i convert the p-code into mex32 file or can i convert the my m-file into mex32 file directly.
Kaustubha Govind
Kaustubha Govind 2013년 5월 30일
Could you explain a little more about the other application that needs to use this. Is it a Simulink model, or did you want to call into the MEX-file as if it were a MATLAB function?

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

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by