MATLAB Report Generator    
Image

Component

Image

Category

Formatting

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.

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.

Image Title

Choose an title option in this section:

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.

Insert as inline image
Select this option if you want to insert an inline image in a paragraph. This option is available only when the image does not have a title, i.e., if you select the No title option in the Image Title section. To make this a valid option, the Image component must have the Paragraph component as its parent and Text components as its peers.
Example: If the following components are included in a setup file,
Copy to local report files directory

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?

Yes. Image.

Filename

cfrimage


  Chapter/Subsection Link