How to convert .slx model to .m or .p or . mlx or .mex?
30 views (last 30 days)
Show older comments
I am using Library Compiler to cinvert a matlab model to Python.
But the model that I have is in .slx format and the App requires me .m or .p or . mlx or .mex
Is that any ways to use Library COmiler with .slx format?
or how to convert .slx to one of the following foramts (.m or .p or . mlx or .mex)?
2 Comments
Ameer Hamza
on 19 Oct 2020
slx is a simulink model file. Why do you want to compile it to python library? How do you intend to use it?
Answers (1)
Walter Roberson
on 19 Oct 2020
You would need Simulink Coder, which would generate C or C++ code that you would call from Python.
2 Comments
Walter Roberson
on 19 Oct 2020
No, MATLAB does not provide any method of converting Simulink models to Python code. It also does not provide any method of converting Simulink models to .mex* or to dll's. MATLAB Compiler SDK is not usable for Simulink models.
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!