Error in 'From Spreadsheet ' Block in Simulink

34 ビュー (過去 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 Center および File ExchangeData Import from MATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by