필터 지우기
필터 지우기

extract number of columns in each row

조회 수: 1 (최근 30일)
ar
ar 2022년 10월 3일
편집: Stephen23 2022년 10월 3일
  1. I have the following variable with a list of rows - each containing a [1 x n] matrix. Is there a way to extract the n for each row into a separate variable?

채택된 답변

Stephen23
Stephen23 2022년 10월 3일
편집: Stephen23 2022년 10월 3일
Where C is your cell array:
V = cellfun(@numel,C)
V = cellfun('size',C,2)

추가 답변 (0개)

카테고리

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

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by