Reading data from cell array

I have a cell array that contains all the data. A{1,1}, A{2,1},...A{37,1}.
Now, I want to extract the first row from A{1,1}, A{2,1},...A{37,1} and then combine all the 37 rows in one mat file. How can I do that?

2 个评论

Is all cells of same size?
Yes, they are all of the same size 15x38

请先登录,再进行评论。

 采纳的回答

madhan ravi
madhan ravi 2019-4-24
编辑:madhan ravi 2019-4-24
C = cell2mat(cellfun(@(x) x(1,:), A, 'un',0));
save mymat.mat C

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 Logical 的更多信息

产品

版本

R2018b

标签

Community Treasure Hunt

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

Start Hunting!

Translated by