extracting sub matrix from a cell array

5 visualizaciones (últimos 30 días)
sermet OGUTCU
sermet OGUTCU el 1 de Ag. de 2021
Editada: darova el 1 de Ag. de 2021
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 ?

Respuesta aceptada

darova
darova el 1 de Ag. de 2021
Editada: darova el 1 de Ag. de 2021
Try
data1 = data{1}(:,3:8)

Más respuestas (0)

Categorías

Más información sobre Matrices and Arrays en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by