필터 지우기
필터 지우기

How to make all the cells of equal size in matlab?

조회 수: 2 (최근 30일)
Sag
Sag 2016년 6월 13일
답변: Walter Roberson 2016년 6월 13일
Hi I have cells which are 1x2244 or 1x2245. How I can make all the cells in the array of equal size by cutting last element in arrays with 2245 elements in them?

답변 (2개)

Azzi Abdelmalek
Azzi Abdelmalek 2016년 6월 13일

Walter Roberson
Walter Roberson 2016년 6월 13일
NewCell = cellfun(@(C) C(1:2244), YourCell, 'Uniform', 0);

카테고리

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