Cell array to image
2 views (last 30 days)
Show older comments
i have a data which is cell array
x_error=41 X 41 Cell
i want to create an image by using this cell array value is this possible
4 Comments
Jos (10584)
on 27 May 2014
What does the contents of each cell look like? And what does it represent?
Answers (1)
Image Analyst
on 27 May 2014
To stitch together two images, each of which is inside a cell, do this:
wideImage = [ca{1}, ca{2}]; % Stitch together horizontally.
tallImage = [ca{1}; ca{2}]; % Stitch together vertically.
See the FAQ: http://matlab.wikia.com/wiki/FAQ#What_is_a_cell_array.3F for a good discussion of cell arrays.
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!