how to convert cell to matrix

6 Ansichten (letzte 30 Tage)
Cem SARIKAYA
Cem SARIKAYA am 28 Dez. 2018
Kommentiert: madhan ravi am 29 Dez. 2018
i have 70103x1 cell array but i want to convert this to matrix i want every array open one row. briefly i want to convert this for example 70103x90 how can i do that?
  1 Kommentar
Akira Agata
Akira Agata am 28 Dez. 2018
Does each cell contain 1x90 array? If so, cell2mat function works, as:
% 2x1 Sample cell array
C = {rand(1,90),rand(1,90)};
% cell2mat will convert it into 2x90 array
X = cell2mat(C);

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

madhan ravi
madhan ravi am 29 Dez. 2018
[yourcellarray{:}]
  2 Kommentare
madhan ravi
madhan ravi am 29 Dez. 2018
Cem SARIKAYA's answer moved here for consistency:
thank you this is exactly what i want
madhan ravi
madhan ravi am 29 Dez. 2018
Anytime :)

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Creating and Concatenating Matrices 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