I am trying to read an excel file and extract the maximum and minimum values from the sheets. Any suggesions?
1 次查看(过去 30 天)
显示 更早的评论
I am using xlsread to read the excel files. However, I am not sure how to extract only the maximum and minimum values from the data read.
0 个评论
回答(2 个)
Image Analyst
2014-3-19
You can read the workbook into a table:
t = readtable(filename);
Then find the max:
maxValue = max(t(:));
That is untested and assumes you have R2013b or later.
0 个评论
Dishant Arora
2014-3-19
You will have to read the xls file first,import the data in workspace. Only then you will be able to get the max and min values.
doc max
doc min
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!