필터 지우기
필터 지우기

Simulink load & save array during execution

조회 수: 3 (최근 30일)
Sara Hamdan
Sara Hamdan 2018년 4월 25일
댓글: David Pasdeloup 2018년 8월 2일
In Simulink - Matlab function, how can I read values from an array then edit the values and save them again in the same array (override), during the execution of the Simulink? (update the array every time step)
  댓글 수: 1
David Pasdeloup
David Pasdeloup 2018년 8월 2일
I had the same issue. My solution was to:
- Stop the simulation
- Save the state of the Simulink model with the SimState functionality
- Rewrite the array
- Continue the simulation from the SimState saved before.
The SimState functionality acts as if the simulation never stopped, but it appeared to me that simulation must be stopped to change the array.

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

답변 (0개)

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by