getting data from mfile to simulink
이전 댓글 표시
I have a set of code which is working fine when i run it individually as matlab script. Now, I have made a model in simulink and i want my model to get the values from that matlab script. For ex- instead of specifying the value of 'A' in simulink model, i want the value of A to be imported from my mfile whenever i run my simulink model. Please help
채택된 답변
추가 답변 (1개)
Walter Roberson
2017년 12월 21일
0 개 추천
Use a From Workspace block in the model. At the matlab level, initialize the variable, and then start the model executing by using the sim() call.
카테고리
도움말 센터 및 File Exchange에서 Simulink에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!