필터 지우기
필터 지우기

How can convert .mdl to .m

조회 수: 8 (최근 30일)
behzad aghaei
behzad aghaei 2013년 8월 29일
I can convert .m to .p by used pcode command but I want convert .mdl to .p
so to achieve this goal firstly I must convert .mdl to .m then by used pcode command convert .m to .p
In fact, I want anybody can not access detail simulink files but every body can run it.
Thanks
  댓글 수: 2
Kaustubha Govind
Kaustubha Govind 2013년 8월 29일
Could you explain why you want to convert the model to a .p file? Is it simply because you want to restrict access to the contents?
behzad aghaei
behzad aghaei 2013년 8월 29일
Yes, exactly!

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

답변 (3개)

David Sanchez
David Sanchez 2013년 8월 29일
To go from your simulink model to a m-file you have to re-write your model into matlab code. There is not a command to transform a simulink model into a m-file.

ES
ES 2013년 8월 29일
You need not convert to m file, then to p code. For your needs, converting the subsystem to Masked sub system will be enough.
  댓글 수: 1
behzad aghaei
behzad aghaei 2013년 8월 29일
No this is not enough. because we want opening the Masked file but i want nobody has access to its contents

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


Andreas Goser
Andreas Goser 2013년 8월 29일
This sounds like you would like to protect your intellectual property, see this documentation for one way to do it. Other ways are creating an s-function from a model or subsystem using Simulink Coder.
  댓글 수: 1
behzad aghaei
behzad aghaei 2013년 8월 29일
Thanks a lot

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

카테고리

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

제품

Community Treasure Hunt

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

Start Hunting!

Translated by