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.
댓글 수: 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!