Excel data import in simulink

17 次查看(过去 30 天)
I wanted to add data in simulink from an excel file. I get the error" The sheet contains either empty signal headings or leading/trailing blank cells. For the header row, either provide values for each column or clear the values for all the columns."
  1 个评论
Bibek
Bibek 2023-2-14
I had the same issue in 2021b. I did the following which helped.
  1. ensured the selected worksheet is within the filepath
  2. created a new worksheet tab for input data only
  3. deleted the colum headers (time, etc), the data would start from A1:xx
Still I am not sure, why I got the issue as the other spreasheets worked fine regardless of the changes above.

请先登录,再进行评论。

回答(1 个)

Akhilesh Mishra
Akhilesh Mishra 2017-7-11
Please refer to the 'Range' section in the following documentation link for 'From SpreadSheet' block. If you have blank cells in the excel sheet you can omit them by specifying the correct indexing.

类别

Help CenterFile Exchange 中查找有关 Data Import from MATLAB 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by