extracting sub matrix from a cell array

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 ExchangeMatrices 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