Output from simulink to matlab file append each run

조회 수: 3 (최근 30일)
Aly Elhefny
Aly Elhefny 2020년 6월 19일
답변: Chaitanya Mallela 2020년 10월 21일
Hello everyone,
Please I need to the output from my (to file) simulink block to be append to the .mat file. So for example the first time simulation runs and finishes the output is saved to the first row and then the second time the simulation runs and finishes output should be saved to second row and so on.
Thanks !

답변 (1개)

Chaitanya Mallela
Chaitanya Mallela 2020년 10월 21일
To file block overwrites the variable every time when simulated. To append the data row wise after every simulation either you can log the data and introduce a short script to append in a single .mat file or create an output port instead of To file block and append the data using callback functions.

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by