필터 지우기
필터 지우기

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.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Type Conversion에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by