필터 지우기
필터 지우기

Writing data from multiple scopes in Simulink to an excel file?

조회 수: 3 (최근 30일)
James Murray
James Murray 2014년 4월 20일
댓글: James Murray 2014년 4월 20일
Hi
I have used "to workspace" function and saved the data as x and y variables.
I know I can use the following to export one scope and save it in excel. But how do I change this so it does both of them at the same time?
A= [tout,x];
save file.xls A -ascii
Thanks

채택된 답변

Mischa Kim
Mischa Kim 2014년 4월 20일
James, simply append the second data vector to the matrix
A = [tout,x,y];
save file.xls A -ascii
where x and y are the two data arrays from the two scopes.
  댓글 수: 4
James Murray
James Murray 2014년 4월 20일
Please have a look at my other question I just posted.
James Murray
James Murray 2014년 4월 20일
By the way that command fixed it. Thanks

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

추가 답변 (0개)

카테고리

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