Adding an image directly from MATLAB into Report Generator

조회 수: 2 (최근 30일)
Software Developer
Software Developer 2019년 4월 18일
편집: Paul Kinnucan 2019년 4월 23일
I am aware of adding a saved image from the drive into a report using mlreportgen.dom.Image class. I am trying to write a color uint8 matrix into a Word report, is this possible? Or must I save the matrix to a tiff, create a mlreportgen.dom.Image object and then write that to the report?
I am trying to avoid having to write temp files to the disk if the matrix is already in memory. Can I create an Image object without a hard drive directory?
Thanks for any insight.
SD

채택된 답변

Paul Kinnucan
Paul Kinnucan 2019년 4월 23일
편집: Paul Kinnucan 2019년 4월 23일
You must save your color matrix on disk in one of the image file formats supported by Word. The Report Generator's Image object alllows you to use a MATLAB script to store that image file in a Word document (docx) package.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Images, Figures, Axes, Equations, MATLAB Code, and MATLAB Variables에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by