data: 2 x 1 cell array =
[ 378063 x 12 table]
[ 377840 x 12 table]
I use the following codes to extract sub matrix from data:
array_1=data{1,:};
array_2=array_1{:,3:8};
Is there a way to create the array_2 matrix using only "data" variable without creating array_1 and array_2 ?

 채택된 답변

darova
darova 2021년 8월 1일
편집: darova 2021년 8월 1일

1 개 추천

Try
data1 = data{1}(:,3:8)

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Matrices and Arrays에 대해 자세히 알아보기

태그

질문:

2021년 8월 1일

편집:

2021년 8월 1일

Community Treasure Hunt

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

Start Hunting!

Translated by