Is it possible to pre load (thanks to Callbacks) a .mlx doc in a Simulink model, to initialize parameters in the model ?
조회 수: 8 (최근 30일)
이전 댓글 표시
The goal is to use mlx code instead of classical matlab file only to have a better interface for the user of the model. I tried in the Callbacks to preload or post load the mlx doc but it does not seem to work...
댓글 수: 0
답변 (1개)
Ayush
2023년 6월 1일
example:run("example.mlx")
But here we can check the Limitations of run so it is not advised hence either you can use ".m" file or copy the code directly in the function.
댓글 수: 1
Walter Roberson
2023년 6월 1일
mlx files can be invoked by name without the extension without using run()
참고 항목
카테고리
Help Center 및 File Exchange에서 MATLAB Compiler에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!