How can convert .mdl to .m
Mostra commenti meno recenti
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 Commenti
Kaustubha Govind
il 29 Ago 2013
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
il 29 Ago 2013
Risposte (3)
David Sanchez
il 29 Ago 2013
0 voti
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.
1 Commento
behzad aghaei
il 29 Ago 2013
ES
il 29 Ago 2013
0 voti
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 Commento
behzad aghaei
il 29 Ago 2013
Andreas Goser
il 29 Ago 2013
0 voti
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 Commento
behzad aghaei
il 29 Ago 2013
Categorie
Scopri di più su General Applications in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!