Borrar filtros
Borrar filtros

How to take the value of the array

2 visualizaciones (últimos 30 días)
Pham Ngoc Thanh
Pham Ngoc Thanh el 5 de Jun. de 2013
I have Wj1 =
[3x12 double] [3x48 double] [3x192 double]
I want to have a matrix [3x252], I make A=[Wj1{1},Wj1{2},Wj1{3}] but i can't make with Wj1(i)
How I can create a matrix A=[Wj1{1},Wj1{2},...,Wj1{i},...,Wj1{n}]
Thanks a lot

Respuesta aceptada

Jan
Jan el 5 de Jun. de 2013
A = [Wj1{:}];
Or equivalently:
A = cat(2, Wj1{:})

Más respuestas (1)

Azzi Abdelmalek
Azzi Abdelmalek el 5 de Jun. de 2013
cell2mat(wj1)

Categorías

Más información sobre Creating and Concatenating Matrices 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