I am trying to read an excel file and extract the maximum and minimum values from the sheets. Any suggesions?

2 ビュー (過去 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.

回答 (2 件)

Image Analyst
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.

Dishant Arora
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

カテゴリ

Help Center および File ExchangeSpreadsheets についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by