HOW TO CONVERT MATRIX INTO IMAGE
Show older comments
i'm having 8x8x96 matrix convert into images or if any other way to apply the value in images...
5 Comments
KSSV
on 28 Mar 2017
@Vasantha You have asked this question already. We had a discussion on this and Walter also suggested you on this.
vasantha malairamar
on 28 Mar 2017
KSSV
on 28 Mar 2017
Copy the code which you have tried with error here..
vasantha malairamar
on 28 Mar 2017
Edited: KSSV
on 28 Mar 2017
KSSV
on 28 Mar 2017
Error is with filename, what is the filename you have given? Also it is tough to check with out knowing dimensions/ data of the variables.
Answers (1)
Walter Roberson
on 28 Mar 2017
filename=sprintf('file%d.bmp',ks)
However, you cannot imwrite() a matrix with 96 color channels. You need to follow up on https://www.mathworks.com/matlabcentral/answers/329919-we-have-8-8-96-matrix-and-we-want-to-convert-this-matrix-into-an-image-how-to-convert-it to explain there what you are doing.
Categories
Find more on Convert Image Type in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!