3 double images stored in a matrix

2 ビュー (過去 30 日間)
Irwan Setiawan
Irwan Setiawan 2022 年 9 月 29 日
コメント済み: Irwan Setiawan 2022 年 10 月 11 日
I have 3 images of size 256 x 256, i want to stored them in a matrix 65536 x 3 double

採用された回答

Kevin Holly
Kevin Holly 2022 年 9 月 29 日
m1 = rand(256);
m2 = rand(256);
m3 = rand(256);
size(m1)
ans = 1×2
256 256
size(m1(:))
ans = 1×2
65536 1
M(:,1) = m1(:);
M(:,2) = m2(:);
M(:,3) = m3(:);
size(M)
ans = 1×2
65536 3
  1 件のコメント
Irwan Setiawan
Irwan Setiawan 2022 年 10 月 11 日
thank you for the answer

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

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by