breaking a large table into smaller one

1 visualización (últimos 30 días)
PRAVEEN GUPTA
PRAVEEN GUPTA el 12 de Ag. de 2019
Comentada: madhan ravi el 13 de Ag. de 2019
i have a table
3 10 1
2 6 2
3 10 1
4 3 3
5 9 4
2 6 2
1 9 5
11 1 6
2 6 2
1 9 5
and i have an array in which position is given to break the table from that part
X=[2,4,6,7]
how can i do this such that i get all the tables in output
thank you in advance

Respuesta aceptada

madhan ravi
madhan ravi el 12 de Ag. de 2019
ix = diff([0,X,size(x,1)]); % x your table
Wanted = mat2cell(x,ix)
  3 comentarios
PRAVEEN GUPTA
PRAVEEN GUPTA el 12 de Ag. de 2019
but how will i get the output i.e. 4 different tables
madhan ravi
madhan ravi el 13 de Ag. de 2019
Each cell contains table.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Tables en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by