Info

此问题已关闭。 请重新打开它进行编辑或回答。

conversion of cell to matrixes

1 次查看(过去 30 天)
Tino
Tino 2019-5-31
关闭: MATLAB Answer Bot 2021-8-20
Hello pls
How do I convert a one column cells k which is a non scalar vector of 12000 rows to matrices For instance [K{:}] to K(:, 1). Thanks for your help in advance Tino
  1 个评论
Walter Roberson
Walter Roberson 2019-5-31
I am not clear? What is size(K{1}) ? In the result, where should K{2} appear relative to K{1} ?
If K is a cell of column vectors, the [K{:}] would create an array in which each entry becomes a column, which sounds like what you are asking for.

回答(1 个)

KSSV
KSSV 2019-5-31
编辑:KSSV 2019-5-31
Read about cell2mat
iwant = cell2mat(K) ;

此问题已关闭。

标签

产品


版本

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by