필터 지우기
필터 지우기

Minimum value of cell array

조회 수: 66 (최근 30일)
Jaanu
Jaanu 2011년 9월 18일
댓글: Mehri Mehrnia 2022년 6월 27일
Is there any way to find the minimum value of a cell array?
This is my cell array,
d(:)=[] [1.9135e+004] [1.9148e+004] [1.9180e+004] [1.9127e+004] [1.9133e+004] [1.9161e+004] [1.9149e+004] [1.9146e+004] [1.9137e+004]
Can i find the minimum of this cell array?Plz help me to solve this problem.

채택된 답변

TAB
TAB 2011년 9월 18일
I don't think the declaration of cell you have given above is correct.
Even though if content of your cell array d have the same data type you can find minimum as
MinVal=min(cell2mat(d));
  댓글 수: 3
Andrei Bobrov
Andrei Bobrov 2011년 9월 18일
min([d{:}])
Mehri Mehrnia
Mehri Mehrnia 2022년 6월 27일
if cell2mat doesn't work for me, what should I do?
The reason that it doesn't work is cell arrays are not in same size!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Cell Arrays에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by