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!