can we interface simulink with matlab code?
이전 댓글 표시
Is this possible to interface the simulink model output with matlab code?
답변 (2개)
Tamir Suliman
2018년 2월 26일
편집: Walter Roberson
2018년 2월 26일
1 개 추천
you can configure Model Callback Functions to call MATLAB code at specific times in the model lifetime. You can use PostLoadFcn to call something right after a model has been loaded, and InitFcn to call during model update, or right before simulation.
You can run MATLAB-file during simulation (as if it were one of the blocks) using the Interpreted MATLAB Function, but initial conditions are needed at the beginning of simulation, so using the InitFcn callback is a better place to do that.
ref
Walter Roberson
2018년 2월 26일
0 개 추천
See the To Workspace and To File blocks, and see the sim() command. It is also possible to invoke MATLAB graphics from inside Simulink.
댓글 수: 1
DhanaLakshmiR
2018년 3월 2일
편집: DhanaLakshmiR
2018년 3월 2일
카테고리
도움말 센터 및 File Exchange에서 Simulink Environment Customization에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!