MATLAB Report Generator | ![]() ![]() |
Category
Description
The Image component inserts an image from an external file into the report. The Image component can have the Chapter/Subsection or Paragraph component as its parent. If the Paragraph component is its parent, then the Insert as inline image check box must be checked.
Attributes
This is the Image attribute page.
Note To view a component attribute page in the Setup File Editor, select the component in the setup file outline on the left and click on the Options tab. If the component is not in the setup file outline, you must add it to the outline first. See Building and Editing the Setup File for a discussion on how to add a component to the outline. |
Image Filename
Enter the image filename in this field or use the browse button (...) to find the file that contains the image. You can choose to copy the image to the local report files directory by selecting that option.
Make sure that the image is in a format that your viewer can read. Your viewer depends on the report format you selected in the Report Options page in the Setup File Editor. See Report Format and Stylesheets for a discussion on report format options.
You can use the %<VariableName>
notation. See %<VariableName> Notation in the Text component reference.
No title: Select this option if you do not want an image title.
Title: Select this option and type in the image title in the corresponding field if you want an image title that is not the same as the image file name.
Title from filename: Select this option if you want the image title to be the same as the image filename.
paragraph text - "This is an example of an inline image." text - "This is an example." image - *image.jpg* text - "This is an example of an inline image."
Select this option to copy the image to the local report files directory. This option creates a relative link from the report to the copied image file. You should use this option:
The image file is in the same directory as the report. You specify this in the Directory: option in the Report Options page in the Setup File Editor. See Report File Directory for a discussion of the Directory: option.
Image Preview
The Image Preview frame shows the image that you specify in the Image file name field. You cannot preview postscript images or images with formats that are not supported by the imread
function, such as .gif
.
If you click on the image in the Image Preview frame, it is displayed in full size on the screen.
Insert anything into report?
Filename
![]() | Chapter/Subsection | Link | ![]() |