How to combine cell row into any varible??

1 visualización (últimos 30 días)
Triveni
Triveni el 29 de Jun. de 2016
Respondida: José-Luis el 29 de Jun. de 2016
value(:,:,1) =
[1x2 double]
value(:,:,2) =
[1x4 double]
value(:,:,3) =
[1x16 double]
value(:,:,4) =
[1x2 double]
value(:,:,5) =
[1x2 double]
value(:,:,6) =
[1x2 double]
value(:,:,7) =
[1x2 double]
value(:,:,8) =
[1x6 double]
value(:,:,9) =
[1x4 double]
value(:,:,10) =
[1x0 double]
value(:,:,11) =
[18]
>> value{:}
ans =
90 90
ans =
45 -45 45 -45
ans =
Columns 1 through 9
90 90 90 90 90 90 90 90 90
Columns 10 through 16
90 90 90 90 90 90 90
ans =
45 -45
ans =
90 90
ans =
45 -45
ans =
90 90
ans =
45 -45 45 -45 45 -45
ans =
90 90 90 90
ans =
Empty matrix: 1-by-0
ans =
18
I want to combine rows from each cell(:,:,(1:11)) into one variable.

Respuesta aceptada

José-Luis
José-Luis el 29 de Jun. de 2016
your_result = [value{:,:,1:11}];

Más respuestas (0)

Categorías

Más información sobre Get Started with MATLAB en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by