Importing header row of excel spreadsheet as a string array
조회 수: 22 (최근 30일)
이전 댓글 표시
I have an excel table that I want to import into MATLAB, but I would like to assign a variable to the header row as a string array. I know I can do this by manually selecting the first row in the 'import data' section, but I would like to add it into my script to save time. The script I am writing will be used for many different sized tables of data, so ideally I don't want to have to specify a range of rows.
댓글 수: 0
답변 (1개)
Prince Kumar
2022년 4월 6일
Hi,
You can use "detectImportOptions".
Please read the following documentation for more information
Hope this helps!
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Spreadsheets에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!