transform the cell (50x95 cell) into the matrix 'in' (50x95x3 uint8)

1 回表示 (過去 30 日間)
Alberto Acri
Alberto Acri 2023 年 8 月 16 日
回答済み: Fangjun Jiang 2023 年 8 月 16 日
Hi! How can I try to transform the cell 'out' (50x95 cell) like the matrix 'in' (50x95x3 uint8)?
I am trying this way but I should apply it for all.
out = importdata("out.mat");
for R = 1:row_imageArray
for C = 1:col_imageArray
A = out{R,C}(:,:,1);
% B = out{R,C}(:,:,2);
% C = out{R,C}(:,:,3);
end
end

採用された回答

Fangjun Jiang
Fangjun Jiang 2023 年 8 月 16 日
cell2mat(out)

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMatrices and Arrays についてさらに検索

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by