Model workspace input data from functions
조회 수: 1 (최근 30일)
이전 댓글 표시
So in the past I made a bunch of functions in Simulink and then put loads of the input variables in the model workspace. Then I have come back to the model after christmas and started adding more functions, which require numbers from this workspace, except I can 't seem to get Matlab to recognise the numbers in the model workspace are the inputs of the new functions. Can anyone help?
댓글 수: 1
Mathieu NOE
2021년 1월 7일
hi
so what in the new functions would not work with the workspace init data that previuously worked ?
maybe you'll have to share the m and simulink code (or a dumy one)
답변 (1개)
Nitin Kapgate
2021년 1월 11일
You can use a Simulink.ModelWorkspace object to Interact with the model workspace of a model programmatically.
You can refer to this example which demonstrates creation, modification and query of a variable in the model workspace of a model.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Programmatic Model Editing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!