필터 지우기
필터 지우기

To find Maximum number of entries in a 1*36 cell

조회 수: 1 (최근 30일)
Utsav
Utsav 2016년 2월 15일
댓글: Utsav 2016년 2월 16일
m=1*36 cell : each 36 column of 'm' contains n*1 double matrix say : n1*1 n2*1.....n25*1 .......n36*1
I have to find maximum of n1 to n36
What should I do?
max(m{:}) returns too many input arguments.

채택된 답변

Sean de Wolski
Sean de Wolski 2016년 2월 15일
[nmx, idx] = max(cellfun(@numel,your_cell))
  댓글 수: 1
Utsav
Utsav 2016년 2월 16일
Perfect. it solved my problem like a charm.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Argument Definitions에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by