필터 지우기
필터 지우기

How to get variables needed for Simulink model?

조회 수: 1 (최근 30일)
Bibigul Shektybayeva
Bibigul Shektybayeva 2017년 8월 22일
답변: Brian Hannan 2017년 8월 22일
I have a Simulink model and a large workspace from which I need some variables for the model. I would like to load only those variables that are needed, and not the whole workspace. How can I get the list of variables that are required for the model?

채택된 답변

Brian Hannan
Brian Hannan 2017년 8월 22일
See the use of Simulink.findVars at this doc page. Also this blog post might be useful.

추가 답변 (1개)

KL
KL 2017년 8월 22일
filename = 'yourMatfile.mat';
yourVariables = {'X','caption'};
S = load(filename,yourVariables{:})

카테고리

Help CenterFile Exchange에서 Modeling에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by