How can I store data from an excel file to a 1D vector
3 次查看(过去 30 天)
显示 更早的评论
I have an excel spreadsheet with many values all in one column. How can I import these into matlab to be saved as a 1D vector?
0 个评论
回答(1 个)
Star Strider
2020-1-12
2 个评论
Star Strider
2020-1-12
Something like this:
Vector = readmatrix('YourExcelFile.xlsx');
or:
Vector = xlsread('YourExcelFile.xlsx');
depending on the function you use.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Spreadsheets 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!