How to get workspace variable data
조회 수: 3 (최근 30일)
이전 댓글 표시
I have a model which consist of 3 To workspace blocks(say x,y,z),I need to automatically save To workspace data into excel sheet,I tried by
simOut1 = sim('mymodel','ReturnWorkspaceOutputs', 'on');
where p=simOut1.who ,gives
p =
'x'
'y'
'z'
now please tell how to get values of x,y,z so i can write these data to excel sheet.
댓글 수: 0
답변 (1개)
Sebastian Castro
2015년 11월 2일
I think you want to do
>> xSeries = get(simout,'x');
>> t = xSeries.Time;
>> x = xSeries.Data;
- Sebastian
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Data Import from MATLAB에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!