フィルターのクリア

cell array conversion included cells and tables

3 ビュー (過去 30 日間)
Farhad Abedinzadeh
Farhad Abedinzadeh 2022 年 3 月 30 日
コメント済み: Farhad Abedinzadeh 2022 年 3 月 31 日
Hi,I have a cell array that given below which is included both table and cell in its rows and I would like to extract numeric values of each rows into a new matrix.How could I do that?
I have trying some functions but I couldn't deal with that.

採用された回答

Walter Roberson
Walter Roberson 2022 年 3 月 30 日
temp = rqa_stat;
tmask = cellfun(@istable, temp);
temp(tmask) = cellfun(@table2array, temp(tmask), 'uniform', 0);
Now temp is a cell array of numeric arrays.
It is not clear to me whether that is what you want, or if you then want to cell2mat() to put everything into one numeric matrix.
  1 件のコメント
Farhad Abedinzadeh
Farhad Abedinzadeh 2022 年 3 月 31 日
I really appreciate your help,thanks dear @Walter Roberson

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by