Converting an excel file into struct
Mostra commenti meno recenti
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,
Risposte (1)
Walter Roberson
il 12 Gen 2016
Modificato: Walter Roberson
il 12 Gen 2016
Do you have R2014b or newer? If you do then
table2struct( readtable('YourExcelFile.xls') )
3 Commenti
Hamna Ahmad
il 13 Gen 2016
Hamna Ahmad
il 13 Gen 2016
Walter Roberson
il 13 Gen 2016
YourStructure.blockName = 'SomeArbitraryString';
Categorie
Scopri di più su Structures in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!