필터 지우기
필터 지우기

How to send to matlab the final outcome of a simulink model?

조회 수: 1 (최근 30일)
Nico0789 Mazzi
Nico0789 Mazzi 2013년 10월 7일
댓글: ES 2013년 10월 7일
I would like to send to matlab the final results (ONLY the final results) of a simulation of a simulink model called in a matlab program, how can i do it?

답변 (1개)

ES
ES 2013년 10월 7일
Do you mean values at outports? In that case you can use
sim
command. sim can simulate the model, log the output values in the variables you want. You can use the values in your script/function.
  댓글 수: 2
Nico0789 Mazzi
Nico0789 Mazzi 2013년 10월 7일
but how i can "log the output values in the variables i want"?
ES
ES 2013년 10월 7일
편집: ES 2013년 10월 7일
[T,X,Y] =sim('model',options) where X and Y are variables that will log values from Outport1, Outport2.
Look here..

댓글을 달려면 로그인하십시오.

카테고리

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

제품

Community Treasure Hunt

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

Start Hunting!

Translated by