im2html.m
im2html produces HTML text containing a table that displays the image pixel colors and values. When called with no output argument, im2html displays the HTML in the MATLAB Web Browser. When called with an output argument, im2html returns the HTML text as a string. This form can be useful when publishing a MATLAB file.
Requires Image Processing Toolbox.
Should run in R2009a or later.
Cite As
Steve Eddins (2024). im2html.m (https://www.mathworks.com/matlabcentral/fileexchange/32273-im2html-m), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Graphics > Images > Convert Image Type >
Tags
Acknowledgements
Inspired by: Printing Variables to HTML Tables in Published Code
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.