Concate cell array and calculate mean of each column.

1 Ansicht (letzte 30 Tage)
Pradya Panyainkaew
Pradya Panyainkaew am 19 Dez. 2017
Kommentiert: Andrei Bobrov am 19 Dez. 2017
I have cell array name A=148X1 that contain 1X28 table each element.
1. How can I concate each element together to gat a result B=148X28 table ?
2. How to calculate mean value for each column from B(:,3:36) ?

Akzeptierte Antwort

Andrei Bobrov
Andrei Bobrov am 19 Dez. 2017
B = cat(1,A{:})
  2 Kommentare
Pradya Panyainkaew
Pradya Panyainkaew am 19 Dez. 2017
Thank you Mr.Bobrov. How can avoid non-cell array in A ?
Andrei Bobrov
Andrei Bobrov am 19 Dez. 2017
"non-cell array in A"
What? Please example.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

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

Community Treasure Hunt

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

Start Hunting!

Translated by