Skip to Main Content Skip to Search
Product Documentation

List - Create bulleted or numbered list from cell array or child components

Description

This component creates a bulleted or numbered list from a cell array or child components.

List Content

List Formatting

Example 1: Creating a Nested List

Consider the following report setup file, which includes a nested list created by putting a List component inside another List component:

[-] Report - Unnamed.rpt
   [-] Bulleted list from child components
      [ ] Text - sky
      [ ] Table - varname
      [ ] Image - test.jpg
      [ ] Text - grass
      [-] Bulleted list from child components
         [ ] Text - clouds
         [ ] Text - sun
      [-] Paragraph - information

This report setup file generates a report that includes the following bulleted lists:

Example 2: Creating a List Using Child Components

To generate a report that includes the following bulleted list:

Use the following report setup file:

[-] Report - Unnamed.rpt
   [-] Bulleted list from child components
      [ ] Text - red
      [ ] Text - green
      [ ] Text - blue

Creating a List Using a Cell Array

To generate the same bulleted list as in the previous example, configure a report setup file to call a cell array, colors:

[-] Report - Unnamed.rpt
   [-] Bulleted list from cell array called colors

Wherecolors is:

colors={'red','green','blue'}

Insert Anything into Report?

Yes. List.

Class

rptgen.cfr_list

See Also

Chapter/Subsection, Empty Component, Link, Paragraph, Table, Text, Title Page

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS