How do I convert my cell array into a cell array of doubles?
조회 수: 2 (최근 30일)
이전 댓글 표시
Hi,
I have a cell array of cells (see attachment) and need to covert each of the cells into numeric arrays for further processing.
How can I do that in one go?
Thanks!
댓글 수: 0
채택된 답변
Voss
2022년 4월 13일
S = load('pre_data_1.mat')
S.pre_data1
S.pre_data1 = cellfun(@cell2mat,S.pre_data1,'UniformOutput',false);
S.pre_data1
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Matrices and Arrays에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!