Error in 'From Spreadsheet ' Block in Simulink

조회 수: 21 (최근 30일)
DARSHAN N KANNUR
DARSHAN N KANNUR 2020년 6월 1일
편집: Rik 2020년 8월 5일
I have 4948 samples in the excel sheet with two columns, first column to be treated as time ad second column to be treated as data. But as soon I press OK after linking the spreadsheet to 'From Spreadsheet' block it results into so many ports instead of just one data port. Tried on MATLAB 2018b.
Thank You in Advance.

답변 (1개)

Sugar Daddy
Sugar Daddy 2020년 6월 1일
Because the sheet you are feeding is row vector (i.e. it has 1 row and 4948 columns), while MATLAB requires column vector (i.e. 4948 rows and 1 column). So take transpose of excel sheet
  댓글 수: 9
Sugar Daddy
Sugar Daddy 2020년 6월 4일
please attach the sheet if possible
DARSHAN N KANNUR
DARSHAN N KANNUR 2020년 6월 9일
편집: Rik 2020년 8월 5일
Hello sir I have attached the excel sheet. Do check it.
Edit Rik:
Moved attachment from separate answer to this comment.

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

카테고리

Help CenterFile Exchange에서 MATLAB Functions in Microsoft Excel에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by