How to take a column of an excel spreadsheet and declare as a variable
21 次查看(过去 30 天)
显示 更早的评论
I have a selection of values from a column in excel which I would like to declare as a variable in MATLAB. What would be the best way to go about doing this?
0 个评论
回答(1 个)
Star Strider
2016-2-13
For example:
A = xlsread(filename, 'B:B');
This assigns colunm ‘B’ in the Excel file to variable ‘A’.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Spreadsheets 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!