필터 지우기
필터 지우기

How to find the minimum length of a cell array

조회 수: 5 (최근 30일)
Joseph Lee
Joseph Lee 2017년 12월 10일
편집: Stephen23 2017년 12월 11일
M= {10x107} {10x108} {10x103} {10x105}
how do i find the minimum length among the cells? eg. 103

채택된 답변

Matt J
Matt J 2017년 12월 10일
min( cellfun(@(c) size(c,2), M) )

추가 답변 (1개)

Stephen23
Stephen23 2017년 12월 11일
편집: Stephen23 2017년 12월 11일
Simpler and faster:
min(cellfun('size',M,2))

카테고리

Help CenterFile Exchange에서 Data Types에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by