Importing header row of excel spreadsheet as a string array

22 ビュー (過去 30 日間)
Elijah L
Elijah L 2022 年 3 月 31 日
回答済み: Prince Kumar 2022 年 4 月 6 日
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.

回答 (1 件)

Prince Kumar
Prince Kumar 2022 年 4 月 6 日
Hi,
You can use "detectImportOptions".
Please read the following documentation for more information
Hope this helps!

カテゴリ

Help Center および File ExchangeSpreadsheets についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by