Extracting only some cell arrays from a cell- based on a double array
조회 수: 2 (최근 30일)
이전 댓글 표시
Dear all,
I have a 1*29 cell (C) containing tables. For example C{1,1} = 444*12 table.
From this 1*29 cell, I want to keep only selected arrays based on the a=[ 1 3 15 19 20 29] variable.
I want to have a final cell like the below:
NewC = {C{1, 1}, C{1,3}, C{1,15}, C{1,19}, C{1,20}, C{1,29}}
Since the real dataset is bigger, I want to know if there is any way to do this using cellfun or a loop.
Best regards.
댓글 수: 0
채택된 답변
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Matrices and Arrays에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!