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 中查找有关 Data Type Conversion 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!