Converting an excel file into struct
显示 更早的评论
Hi all! I am facing a problem in converting my two column vectors in excel file to a struct. The columns have Time and data values respectively. I need to convert them to struct so that I could process it further using Matlab commands which require struct type of arguments. Kindly help me with this. Regards,
回答(1 个)
Walter Roberson
2016-1-12
编辑:Walter Roberson
2016-1-12
Do you have R2014b or newer? If you do then
table2struct( readtable('YourExcelFile.xls') )
3 个评论
Hamna Ahmad
2016-1-13
Hamna Ahmad
2016-1-13
Walter Roberson
2016-1-13
YourStructure.blockName = 'SomeArbitraryString';
类别
在 帮助中心 和 File Exchange 中查找有关 Structures 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!