I have a single simulink model and from that i want a value of variable assume 'x'; Now further I run the model for various cases say 4. How do i get the value of variable x for four different cases as every time i run the value will get replace according to case; i need to use those values for plot.

 채택된 답변

Sulaymon Eshkabilov
Sulaymon Eshkabilov 2019년 5월 18일

0 개 추천

One of the possible solutions is to employ sim() and run your simulink model for 4 cases within a loop [for .. end] from MATLAB, and collect the values of x for every iteration.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Modeling에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by