Excel data import in simulink
Show older comments
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."
2 Comments
Bibek
on 14 Feb 2023
I had the same issue in 2021b. I did the following which helped.
- ensured the selected worksheet is within the filepath
- created a new worksheet tab for input data only
- 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.
YURIY
on 9 Apr 2025
Спасибо! Именно третье замечание стало ключевым, из-за него всё!
Answers (1)
Akhilesh Mishra
on 11 Jul 2017
1 vote
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.
1 Comment
Ramakrishnan Vaidyanathan
on 12 Jul 2017
Categories
Find more on Data Import from MATLAB in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!