cell operattion double to uint8

i have a cell A{64,4} and the type is double. i want to conversion double to uint8. but in matlab it is not possible because A is cell. the input of conversion must array. how to change cell to array so i can do the conversion ?

1 件のコメント

Jan
Jan 2013 年 3 月 18 日
The type of a cell is 'cell'. Therefore I assume, you mean than the cell elements are of type 'double'.

サインインしてコメントする。

回答 (2 件)

TAB
TAB 2013 年 3 月 18 日

1 投票

A_InArrayFormat = cellfun(@uint8,A);
A_InCellFormat = cellfun(@uint8,A,'UniformOutput',0);
Jan
Jan 2013 年 3 月 18 日

0 投票

And a simple loop:
for iC = 1:numel(C)
C{iC} = uint8(C{iC});
end

カテゴリ

ヘルプ センター および File ExchangeCell Arrays についてさらに検索

タグ

質問済み:

2013 年 3 月 18 日

Community Treasure Hunt

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

Start Hunting!

Translated by