How to convert cell into mat by single command?

2 Ansichten (letzte 30 Tage)
Triveni
Triveni am 5 Feb. 2016
Beantwortet: Guillaume am 5 Feb. 2016
[1x9 double] [1x8 double] [1x7 double]
Columns 4 through 6
[1x6 double] [1x5 double] [1x4 double]
Columns 7 through 9
[1x3 double] [1x2 double] [1x0x0 double]
I have to use these values in loop.
i want it as out(:,:,:) format.

Antworten (1)

Guillaume
Guillaume am 5 Feb. 2016
Since all the vectors in your cell array have all different numbers of columns but just one row, the only matrix you can put them all together is a row vector, which you'd achieve with
rowvector = [yourcellarray{:}]
There is no way to concatenate the vectors in a 3d matrix unless you first add or remove elements in these vectors so they're all the same size.

Kategorien

Mehr zu Matrices and Arrays finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by