I want to create an image using a matrix.
5 ビュー (過去 30 日間)
古いコメントを表示
Nikhil Chourasia
2015 年 2 月 11 日
コメント済み: Nikhil Chourasia
2015 年 3 月 10 日
1) Suppose i have a (8x8) matrix and i want this matrix to be converted into image (as shown in below image).

Note that each row of the matrix correspond to the each row of color in the image.
2) Also if i have R,G,B matrix, then how can i create the image (as shown in below image)
10 件のコメント
採用された回答
Eduardo Márquez
2015 年 2 月 13 日
編集済み: Eduardo Márquez
2015 年 2 月 13 日
Using:
imwrite(A,'Image.jpg')
where A is a matrix 3D, A(:,:,1) = Red channel, A(:,:,2) = Green Channel, A(:,:,3) = Blue Channel;
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

