필터 지우기
필터 지우기

Is it possible to pre load (thanks to Callbacks) a .mlx doc in a Simulink model, to initialize parameters in the model ?

조회 수: 5 (최근 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...

답변 (1개)

Ayush
Ayush 2023년 6월 1일
Hi @Lea, You can surely do that by adding run function in the preload function.
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.

카테고리

Help CenterFile Exchange에서 Model, Block, and Port Callbacks에 대해 자세히 알아보기

태그

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by