Reading data from cell array

1 回表示 (過去 30 日間)
Ahmad Hasnain
Ahmad Hasnain 2019 年 4 月 24 日
コメント済み: Ahmad Hasnain 2019 年 4 月 24 日
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 件のコメント
KSSV
KSSV 2019 年 4 月 24 日
Is all cells of same size?
Ahmad Hasnain
Ahmad Hasnain 2019 年 4 月 24 日
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 件)

カテゴリ

Help Center および File ExchangeData Types についてさらに検索

タグ

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by