필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

How to find maximum value of cell array

조회 수: 1 (최근 30일)
Vishal Sharma
Vishal Sharma 2017년 1월 24일
댓글: Stephen23 2017년 1월 24일
for a = 1:10
x{a} = xlsread(fileName, a, range);
end
How to find the maximum value of this cell array
or simply take example of
a cell array in this form
A = [1] [4] [6] [1 ] [5] [7]
How to find the maximum value (i.e. 7)
  댓글 수: 1
Stephen23
Stephen23 2017년 1월 24일
Duplicate:
https://www.mathworks.com/matlabcentral/answers/321723-how-to-find-the-index-of-the-element-of-a-cell-array-which-has-the-maximum-size

채택된 답변

Vishal Sharma
Vishal Sharma 2017년 1월 24일
got the answer
max([A{:}])
  댓글 수: 2
Vishal Sharma
Vishal Sharma 2017년 1월 24일
편집: Vishal Sharma 2017년 1월 24일
But I still dont know how to get location of maximum value in cell array
anybody know?
please help me :)
Stephen23
Stephen23 2017년 1월 24일
When people learn to read the MATLAB documentation, then they learn how to use MATLAB. Did you look at the max documentation? The documentation tells you exactly what you are looking for.

추가 답변 (0개)

이 질문은 마감되었습니다.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by