cellfun(@single,a,'un',0)
Convert cell data type to single
26 次查看(过去 30 天)
显示 更早的评论
I have a cell each cell have array. I want to convert ALL to type single but i cannot. Matlab gives error
Conversion to single from cell is not possible.
My code
a = single(a)
some of the cells in a are empty but i do not want to change anything of that
0 个评论
回答(1 个)
另请参阅
类别
在 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!