フィルターのクリア

Convert cell data type to single

19 ビュー (過去 30 日間)
RuiQi
RuiQi 2016 年 6 月 24 日
編集済み: RuiQi 2016 年 6 月 24 日
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

回答 (1 件)

Andrei Bobrov
Andrei Bobrov 2016 年 6 月 24 日
cellfun(@single,a,'un',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